Henri Verbeet : wined3d: Correctly calculate the extended style in IWineD3DDeviceImpl_RestoreWindow ().
Alexandre Julliard
julliard at winehq.org
Fri Dec 11 11:04:45 CST 2009
Module: wine
Branch: master
Commit: 75ef50e4354e764bf9b7ab6bcd8eccfe4354f4a3
URL: http://source.winehq.org/git/wine.git/?a=commit;h=75ef50e4354e764bf9b7ab6bcd8eccfe4354f4a3
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Dec 10 21:41:53 2009 +0100
wined3d: Correctly calculate the extended style in IWineD3DDeviceImpl_RestoreWindow().
---
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);
}
More information about the wine-cvs
mailing list