Commit d2fa9e38 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

d3d9/tests: Check device window rect after reset.

parent f3bb21e8
...@@ -3559,6 +3559,14 @@ static void test_window_style(void) ...@@ -3559,6 +3559,14 @@ static void test_window_style(void)
hr = reset_device(device, &device_desc); hr = reset_device(device, &device_desc);
ok(SUCCEEDED(hr), "Failed to reset device, hr %#x.\n", hr); ok(SUCCEEDED(hr), "Failed to reset device, hr %#x.\n", hr);
GetWindowRect(device_window, &r);
if (tests[i].device_flags & CREATE_DEVICE_NOWINDOWCHANGES)
todo_wine ok(EqualRect(&r, &device_rect), "Expected %s, got %s, i=%u.\n",
wine_dbgstr_rect(&device_rect), wine_dbgstr_rect(&r), i);
else
ok(EqualRect(&r, &fullscreen_rect), "Expected %s, got %s, i=%u.\n",
wine_dbgstr_rect(&fullscreen_rect), wine_dbgstr_rect(&r), i);
style = GetWindowLongA(device_window, GWL_STYLE); style = GetWindowLongA(device_window, GWL_STYLE);
expected_style = device_style; expected_style = device_style;
todo_wine_if (!(tests[i].style_flags & WS_VISIBLE)) todo_wine_if (!(tests[i].style_flags & WS_VISIBLE))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment