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

Alexandre Julliard julliard at winehq.org
Sun Jul 3 12:18:27 CDT 2016


Module: wine
Branch: master
Commit: 88fb88508804ed3c8e815e8f59a6c94e75c489b5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=88fb88508804ed3c8e815e8f59a6c94e75c489b5

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Jun 27 09:45:31 2016 +0200

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

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
 	}
 




More information about the wine-cvs mailing list