1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 20:06:18 +00:00

d3d8/tests: Use a borderless window for test_cursor_pos.

The mouse positions are wrong on KDE otherwise, even for the initial
SetCursorPos call that doesn't go through d3d8/9.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2017-10-12 17:14:29 +02:00 committed by Alexandre Julliard
parent c534ba589e
commit 8daf3fb5e0

View File

@ -1052,7 +1052,7 @@ static void test_cursor_pos(void)
wc.lpfnWndProc = test_cursor_proc;
wc.lpszClassName = "d3d8_test_cursor_wc";
ok(RegisterClassA(&wc), "Failed to register window class.\n");
window = CreateWindowA("d3d8_test_cursor_wc", "d3d8_test", WS_OVERLAPPEDWINDOW,
window = CreateWindowA("d3d8_test_cursor_wc", "d3d8_test", WS_POPUP | WS_SYSMENU,
0, 0, 320, 240, NULL, NULL, NULL, NULL);
ShowWindow(window, SW_SHOW);
d3d8 = Direct3DCreate8(D3D_SDK_VERSION);