wined3d: Correctly calculate the extended style in IWineD3DDeviceImpl_RestoreWindow().

This commit is contained in:
Henri Verbeet 2009-12-10 21:41:53 +01:00 committed by Alexandre Julliard
parent 840b5af77e
commit 75ef50e435
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}