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

d3d9/tests: Make device test_window_style checks more consistent.

parent 64188baf
...@@ -4919,19 +4919,19 @@ static void test_window_style(void) ...@@ -4919,19 +4919,19 @@ static void test_window_style(void)
style = GetWindowLongA(device_window, GWL_STYLE); style = GetWindowLongA(device_window, GWL_STYLE);
expected_style = device_style | tests[i].focus_loss_style | tests[i].style; expected_style = device_style | tests[i].focus_loss_style | tests[i].style;
todo_wine ok(style == expected_style, "Expected device window style %#x, got %#x.\n", todo_wine ok(style == expected_style, "Expected device window style %#x, got %#x, i=%u.\n",
expected_style, style); expected_style, style, i);
style = GetWindowLongA(device_window, GWL_EXSTYLE); style = GetWindowLongA(device_window, GWL_EXSTYLE);
expected_style = device_exstyle | tests[i].exstyle; expected_style = device_exstyle | tests[i].exstyle;
todo_wine ok(style == expected_style, "Expected device window extended style %#x, got %#x.\n", todo_wine ok(style == expected_style, "Expected device window extended style %#x, got %#x, i=%u.\n",
expected_style, style); expected_style, style, i);
style = GetWindowLongA(focus_window, GWL_STYLE); style = GetWindowLongA(focus_window, GWL_STYLE);
ok(style == focus_style, "Expected focus window style %#x, got %#x.\n", ok(style == focus_style, "Expected focus window style %#x, got %#x, i=%u.\n",
focus_style, style); focus_style, style, i);
style = GetWindowLongA(focus_window, GWL_EXSTYLE); style = GetWindowLongA(focus_window, GWL_EXSTYLE);
ok(style == focus_exstyle, "Expected focus window extended style %#x, got %#x.\n", ok(style == focus_exstyle, "Expected focus window extended style %#x, got %#x, i=%u.\n",
focus_exstyle, style); focus_exstyle, style, i);
/* In d3d8 follow-up tests fail on native if the device is destroyed while /* In d3d8 follow-up tests fail on native if the device is destroyed while
* lost. This doesn't happen in d3d9 on my test machine but it still seems * lost. This doesn't happen in d3d9 on my test machine but it still seems
......
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