Michael Stefaniuc : gdi32/tests: Use SetRect() instead of open coding it.

Alexandre Julliard julliard at winehq.org
Wed Jun 22 11:04:40 CDT 2016


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Jun 21 14:13:43 2016 +0200

gdi32/tests: Use SetRect() instead of open coding it.

Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/gdi32/tests/metafile.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dlls/gdi32/tests/metafile.c b/dlls/gdi32/tests/metafile.c
index bcd085c..7e2e66d 100644
--- a/dlls/gdi32/tests/metafile.c
+++ b/dlls/gdi32/tests/metafile.c
@@ -3097,8 +3097,7 @@ static void test_SetWinMetaFileBits(void)
   if (!wmfDC) return;
 
   SetWindowExtEx(wmfDC, 100, 100, NULL);
-  rect.left = rect.top = 0;
-  rect.right = rect.bottom = 50;
+  SetRect(&rect, 0, 0, 50, 50);
   FillRect(wmfDC, &rect, GetStockObject(BLACK_BRUSH));
   wmf = CloseMetaFile(wmfDC);
   ok(wmf != NULL, "Metafile creation failed\n");




More information about the wine-cvs mailing list