From 75ef50e4354e764bf9b7ab6bcd8eccfe4354f4a3 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Thu, 10 Dec 2009 21:41:53 +0100 Subject: [PATCH] wined3d: Correctly calculate the extended style in IWineD3DDeviceImpl_RestoreWindow(). --- dlls/wined3d/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c index c04f32b77df..029884c3333 100644 --- a/dlls/wined3d/device.c +++ b/dlls/wined3d/device.c @@ -1014,8 +1014,8 @@ static void IWineD3DDeviceImpl_RestoreWindow(IWineD3DDevice *iface, HWND window) * Some applications change it before calling Reset() when switching between windowed and * fullscreen modes(HL2), some depend on the original style(Eve Online) */ - if(style == fullscreen_style(This->style) && - exStyle == fullscreen_style(This->exStyle)) { + if (style == fullscreen_style(This->style) && exStyle == fullscreen_exStyle(This->exStyle)) + { SetWindowLongW(window, GWL_STYLE, This->style); SetWindowLongW(window, GWL_EXSTYLE, This->exStyle); }