Commit 75ef50e4 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

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

parent 840b5af7
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment