On Mon, Aug 27, 2018 at 10:03 PM Andrew Eikum aeikum@codeweavers.com wrote:
@@ -1427,6 +1435,10 @@ HRESULT CDECL wined3d_swapchain_set_fullscreen(struct wined3d_swapchain *swapcha { /* Fullscreen -> windowed switch */ RECT *window_rect = NULL;
if (!IsWindow(swapchain->device_window))
return WINED3DERR_NOTAVAILABLE;
if (swapchain->desc.flags & WINED3D_SWAPCHAIN_RESTORE_WINDOW_RECT) window_rect = &swapchain->original_window_rect; wined3d_device_restore_fullscreen_window(device, swapchain->device_window, window_rect);
I haven't reviewed the patch in detail, but the quick test shows that it should be possible to leave the fullscreen mode when the window is destroyed. S_OK is returned in this case.