cards: Use SetRect() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Mon Jun 27 02:45:31 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
dlls/cards/cards.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/dlls/cards/cards.c b/dlls/cards/cards.c
index b9506ea..9bec966 100644
--- a/dlls/cards/cards.c
+++ b/dlls/cards/cards.c
@@ -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);
}
--
2.4.11
More information about the wine-patches
mailing list