wordpad: Use OffsetRect() 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-06 11:16:40 +02:00 committed by Alexandre Julliard
parent 4b26eef83c
commit dc525e8c40
1 changed files with 1 additions and 4 deletions

View File

@ -723,10 +723,7 @@ static void draw_margin_lines(HDC hdc, int x, int y, float ratio)
page_margin.bottom = (int)((float)twips_to_pixels(page_margin.bottom, dpi.cy) * ratio); page_margin.bottom = (int)((float)twips_to_pixels(page_margin.bottom, dpi.cy) * ratio);
page_margin.right = (int)((float)twips_to_pixels(page_margin.right, dpi.cx) * ratio); page_margin.right = (int)((float)twips_to_pixels(page_margin.right, dpi.cx) * ratio);
page_margin.left += x; OffsetRect(&page_margin, x, y);
page_margin.top += y;
page_margin.bottom += y;
page_margin.right += x;
hPen = CreatePen(PS_DOT, 1, RGB(0,0,0)); hPen = CreatePen(PS_DOT, 1, RGB(0,0,0));
oldPen = SelectObject(hdc, hPen); oldPen = SelectObject(hdc, hPen);