Commit f901144d authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Don't hide and restore the window when changing it to be a popup

style.
parent 4dd29618
...@@ -1348,12 +1348,10 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface, ...@@ -1348,12 +1348,10 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
#endif #endif
/* Make popup window */ /* Make popup window */
ShowWindow(whichHWND, SW_HIDE);
SetWindowLongA(whichHWND, GWL_STYLE, WS_POPUP); SetWindowLongA(whichHWND, GWL_STYLE, WS_POPUP);
SetWindowPos(object->win_handle, HWND_TOP, 0, 0, SetWindowPos(object->win_handle, HWND_TOP, 0, 0,
pPresentationParameters->BackBufferWidth, pPresentationParameters->BackBufferWidth,
pPresentationParameters->BackBufferHeight, SWP_SHOWWINDOW | SWP_FRAMECHANGED); pPresentationParameters->BackBufferHeight, SWP_SHOWWINDOW | SWP_FRAMECHANGED);
ShowWindow(whichHWND, SW_SHOW);
} }
TRACE("Creating back buffer\n"); TRACE("Creating back buffer\n");
......
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