Michael Stefaniuc : wordpad: Use InflateRect() instead of open coding it.
Alexandre Julliard
julliard at winehq.org
Mon Jul 4 09:54:40 CDT 2016
Module: wine
Branch: master
Commit: 098adff646f7c5d639a974924f9294787db17bc6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=098adff646f7c5d639a974924f9294787db17bc6
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jun 30 10:55:39 2016 +0200
wordpad: Use InflateRect() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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));
}
}
More information about the wine-cvs
mailing list