gdi32/tests: Fix a test that can fail on multi-monitor setups.
This commit is contained in:
parent
a9b786728c
commit
8b7760292d
|
@ -403,11 +403,15 @@ static void test_device_caps( HDC hdc, HDC ref_dc, const char *descr )
|
||||||
}
|
}
|
||||||
|
|
||||||
type = GetClipBox( ref_dc, &rect );
|
type = GetClipBox( ref_dc, &rect );
|
||||||
|
if (type != COMPLEXREGION) /* region can be complex on multi-monitor setups */
|
||||||
|
{
|
||||||
ok( type == SIMPLEREGION, "GetClipBox returned %d on %s\n", type, descr );
|
ok( type == SIMPLEREGION, "GetClipBox returned %d on %s\n", type, descr );
|
||||||
ok( rect.left == 0 && rect.top == 0 &&
|
ok( rect.left == 0 && rect.top == 0 &&
|
||||||
rect.right == GetDeviceCaps( ref_dc, DESKTOPHORZRES ) &&
|
rect.right == GetDeviceCaps( ref_dc, DESKTOPHORZRES ) &&
|
||||||
rect.bottom == GetDeviceCaps( ref_dc, DESKTOPVERTRES ),
|
rect.bottom == GetDeviceCaps( ref_dc, DESKTOPVERTRES ),
|
||||||
"GetClipBox returned %d,%d,%d,%d on %s\n", rect.left, rect.top, rect.right, rect.bottom, descr );
|
"GetClipBox returned %d,%d,%d,%d on %s\n",
|
||||||
|
rect.left, rect.top, rect.right, rect.bottom, descr );
|
||||||
|
}
|
||||||
|
|
||||||
SetBoundsRect( ref_dc, NULL, DCB_RESET | DCB_ACCUMULATE );
|
SetBoundsRect( ref_dc, NULL, DCB_RESET | DCB_ACCUMULATE );
|
||||||
SetMapMode( ref_dc, MM_TEXT );
|
SetMapMode( ref_dc, MM_TEXT );
|
||||||
|
|
Loading…
Reference in New Issue