wordpad: Use InflateRect() instead of open coding it.

Michael Stefaniuc mstefani at redhat.de
Sat Jul 9 06:53:12 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 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 6c7c4f6..d34fd66 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));
-- 
2.4.11



More information about the wine-patches mailing list