gdi32/tests: Make the test clipping window topmost to see if it helps.
This commit is contained in:
parent
5d69141014
commit
295682f35c
|
@ -35,7 +35,8 @@ static void test_GetRandomRgn(void)
|
||||||
ok( hwnd != 0, "CreateWindow failed\n" );
|
ok( hwnd != 0, "CreateWindow failed\n" );
|
||||||
|
|
||||||
SetRect(&window_rc, 400, 300, 500, 400);
|
SetRect(&window_rc, 400, 300, 500, 400);
|
||||||
MoveWindow(hwnd, window_rc.left, window_rc.top, window_rc.right - window_rc.left, window_rc.bottom - window_rc.top, FALSE);
|
SetWindowPos(hwnd, HWND_TOPMOST, window_rc.left, window_rc.top,
|
||||||
|
window_rc.right - window_rc.left, window_rc.bottom - window_rc.top, 0 );
|
||||||
hdc = GetDC(hwnd);
|
hdc = GetDC(hwnd);
|
||||||
|
|
||||||
ret = GetRandomRgn(hdc, hrgn, 1);
|
ret = GetRandomRgn(hdc, hrgn, 1);
|
||||||
|
|
Loading…
Reference in New Issue