cards: Use SetRect() 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
30ee087d06
commit
88fb885088
|
@ -151,10 +151,7 @@ BOOL WINAPI cdtDrawExt(HDC hdc, int x, int y, int dx, int dy, int card, int mode
|
||||||
HBRUSH hBrush;
|
HBRUSH hBrush;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
hBrush = CreateSolidBrush(color);
|
hBrush = CreateSolidBrush(color);
|
||||||
rect.left = x;
|
SetRect(&rect, x, y, x + cardWidth - 1, y + cardHeight - 1);
|
||||||
rect.top = y;
|
|
||||||
rect.right = x + cardWidth - 1;
|
|
||||||
rect.bottom = y + cardHeight - 1;
|
|
||||||
FillRect(hdc, &rect, hBrush);
|
FillRect(hdc, &rect, hBrush);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue