gdi32/tests: Use SetRect() instead of open coding it.
Michael Stefaniuc
mstefani at redhat.de
Tue Jun 21 07:13:43 CDT 2016
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
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 13aeb89..8d28b97 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");
--
2.4.11
More information about the wine-patches
mailing list