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

wined3d: Simplify a comparison in IWineD3DDeviceImpl_Reset().

parent d6bbe90b
...@@ -6619,10 +6619,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE ...@@ -6619,10 +6619,9 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
} }
} }
if((pPresentationParameters->Windowed && !swapchain->presentParms.Windowed) || if (!pPresentationParameters->Windowed != !swapchain->presentParms.Windowed
(swapchain->presentParms.Windowed && !pPresentationParameters->Windowed) || || DisplayModeChanged)
DisplayModeChanged) { {
IWineD3DDevice_SetDisplayMode(iface, 0, &mode); IWineD3DDevice_SetDisplayMode(iface, 0, &mode);
if (!pPresentationParameters->Windowed) if (!pPresentationParameters->Windowed)
......
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