Commit 88fb8850 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

cards: Use SetRect() instead of open coding it.

parent 30ee087d
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment