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:
Michael Stefaniuc 2016-06-27 09:45:31 +02:00 committed by Alexandre Julliard
parent 30ee087d06
commit 88fb885088
1 changed files with 1 additions and 4 deletions

View File

@ -151,10 +151,7 @@ BOOL WINAPI cdtDrawExt(HDC hdc, int x, int y, int dx, int dy, int card, int mode
HBRUSH hBrush;
RECT rect;
hBrush = CreateSolidBrush(color);
rect.left = x;
rect.top = y;
rect.right = x + cardWidth - 1;
rect.bottom = y + cardHeight - 1;
SetRect(&rect, x, y, x + cardWidth - 1, y + cardHeight - 1);
FillRect(hdc, &rect, hBrush);
}