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

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-06-21 14:13:43 +02:00 committed by Alexandre Julliard
parent 84ce9dfba7
commit 6d21655ed9
1 changed files with 1 additions and 2 deletions

View File

@ -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");