Commit d6bbe90b authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: The swapchain should always have a window handle.

parent 0ae49c35
...@@ -6625,7 +6625,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE ...@@ -6625,7 +6625,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
IWineD3DDevice_SetDisplayMode(iface, 0, &mode); IWineD3DDevice_SetDisplayMode(iface, 0, &mode);
if(swapchain->win_handle && !pPresentationParameters->Windowed) { if (!pPresentationParameters->Windowed)
{
if(swapchain->presentParms.Windowed) { if(swapchain->presentParms.Windowed) {
/* switch from windowed to fs */ /* switch from windowed to fs */
swapchain_setup_fullscreen_window(swapchain, pPresentationParameters->BackBufferWidth, swapchain_setup_fullscreen_window(swapchain, pPresentationParameters->BackBufferWidth,
...@@ -6636,7 +6637,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE ...@@ -6636,7 +6637,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
pPresentationParameters->BackBufferWidth, pPresentationParameters->BackBufferHeight, pPresentationParameters->BackBufferWidth, pPresentationParameters->BackBufferHeight,
TRUE); TRUE);
} }
} else if(swapchain->win_handle && !swapchain->presentParms.Windowed) { }
else if (!swapchain->presentParms.Windowed)
{
/* Fullscreen -> windowed switch */ /* Fullscreen -> windowed switch */
swapchain_restore_fullscreen_window(swapchain); swapchain_restore_fullscreen_window(swapchain);
} }
......
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