From 0a3700e051f3e9473c5daa40a5cdd951b1310b8c Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sat, 9 Jul 2016 13:53:12 +0200 Subject: [PATCH] wordpad: Use InflateRect() instead of open coding it. Signed-off-by: Michael Stefaniuc Signed-off-by: Alexandre Julliard --- programs/wordpad/print.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c index 6c7c4f630df..d34fd66edc2 100644 --- a/programs/wordpad/print.c +++ b/programs/wordpad/print.c @@ -381,8 +381,7 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics) GetClientRect(hWnd, &drawRect); FillRect(hdc, &drawRect, hBrush); - drawRect.top += 3; - drawRect.bottom -= 3; + InflateRect(&drawRect, 0, -3); drawRect.left = EditLeftmost; drawRect.right = twips_to_pixels(printRect.right - margins.left, GetDeviceCaps(hdc, LOGPIXELSX)); FillRect(hdc, &drawRect, GetStockObject(WHITE_BRUSH));