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
dc5dd6ac0a
commit
0a3700e051
|
@ -381,8 +381,7 @@ static void paint_ruler(HWND hWnd, LONG EditLeftmost, BOOL NewMetrics)
|
|||
GetClientRect(hWnd, &drawRect);
|
||||
FillRect(hdc, &drawRect, hBrush);
|
||||
|
||||
drawRect.top += 3;
|
||||
drawRect.bottom -= 3;
|
||||
InflateRect(&drawRect, 0, -3);
|
||||
drawRect.left = EditLeftmost;
|
||||
drawRect.right = twips_to_pixels(printRect.right - margins.left, GetDeviceCaps(hdc, LOGPIXELSX));
|
||||
FillRect(hdc, &drawRect, GetStockObject(WHITE_BRUSH));
|
||||
|
|
Loading…
Reference in New Issue