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

Michael Stefaniuc mstefani at redhat.de
Thu Jun 30 03:55:39 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 programs/wordpad/print.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/programs/wordpad/print.c b/programs/wordpad/print.c
index 3b78ffa..6c7c4f6 100644
--- a/programs/wordpad/print.c
+++ b/programs/wordpad/print.c
@@ -881,10 +881,7 @@ static LRESULT print_preview(HWND hwndPreview)
 
             draw_margin_lines(hdc, x, y, preview.zoomratio);
         } else {
-            background.left += 2;
-            background.right -= 2;
-            background.top += 2;
-            background.bottom -= 2;
+            InflateRect(&background, -2, -2);
             FillRect(hdc, &background, GetStockObject(WHITE_BRUSH));
         }
     }
-- 
2.4.11



More information about the wine-patches mailing list