Module: wine Branch: master Commit: 098adff646f7c5d639a974924f9294787db17bc6 URL: http://source.winehq.org/git/wine.git/?a=commit;h=098adff646f7c5d639a974924f...
Author: Michael Stefaniuc mstefani@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@redhat.de Signed-off-by: Alexandre Julliard julliard@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)); } }