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:
parent
8e05ddb1f8
commit
098adff646
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue