Skip to content
Snippets Groups Projects
Commit 5593a083 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard
Browse files

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

and borders. Make this window a popup window.
parent c8ad3cb7
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment