When emulating fullscreen it helps to not allocate space for menu bars

and borders. Make this window a popup window.
This commit is contained in:
Jason Edmeades 2003-06-13 18:53:06 +00:00 committed by Alexandre Julliard
parent c8ad3cb75c
commit 5593a08334

View file

@ -965,9 +965,14 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
#else
FIXME("Requested full screen support not implemented, expect windowed operation\n");
#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");