On Fri, 30 Oct 2020 at 10:19, Zhiyi Zhang <zzhang(a)codeweavers.com> wrote:
@@ -1839,8 +1842,8 @@ void wined3d_swapchain_activate(struct wined3d_swapchain *swapchain, BOOL activa device->restore_screensaver = FALSE; }
- if (FAILED(hr = wined3d_output_set_display_mode(output, NULL))) - ERR("Failed to set display mode, hr %#x.\n", hr); + if (FAILED(hr = wined3d_restore_display_modes(device->wined3d))) + ERR("Failed to restore display modes, hr %#x.\n", hr);
swapchain->reapply_mode = TRUE;
This causes test failures in ddraw's test_window_style() test here: ddraw1.c:2583: Test failed: Expected window style 0x4cf0000, got 0xb40b0000. ddraw1.c:2585: Test failed: Expected window extended style 0x100, got 0.