[PATCH v2 7/7] wined3d: Restore display modes for all outputs when doing mode restoration.

Henri Verbeet hverbeet at gmail.com
Fri Oct 30 11:44:51 CDT 2020


On Fri, 30 Oct 2020 at 10:19, Zhiyi Zhang <zzhang at 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.



More information about the wine-devel mailing list