[PATCH 2/5] wined3d: Correctly calculate the extended style in IWineD3DDeviceImpl_RestoreWindow().
Henri Verbeet
hverbeet at codeweavers.com
Thu Dec 10 14:41:53 CST 2009
---
dlls/wined3d/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index c04f32b..029884c 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);
}
--
1.6.4.4
More information about the wine-patches
mailing list