wined3d: Simplify a comparison in IWineD3DDeviceImpl_Reset().

This commit is contained in:
Henri Verbeet 2010-03-15 21:07:29 +01:00 committed by Alexandre Julliard
parent d6bbe90b85
commit aa819fe888
1 changed files with 3 additions and 4 deletions

View File

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