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

style.
This commit is contained in:
Jason Edmeades 2004-09-21 20:04:24 +00:00 committed by Alexandre Julliard
parent 4dd296180a
commit f901144d85

View file

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