Don't hide and restore the window when changing it to be a popup
style.
This commit is contained in:
parent
4dd296180a
commit
f901144d85
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue