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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-30 10:55:39 +02:00 committed by Alexandre Julliard
parent 8e05ddb1f8
commit 098adff646
1 changed files with 1 additions and 4 deletions

View File

@ -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));
}
}