When a game requests fullscreen, make its window the dimensions

requested. Ideally this should be followed by making the screen that
resolution, but this suffices for now.
This commit is contained in:
Jason Edmeades 2003-04-20 02:47:22 +00:00 committed by Alexandre Julliard
parent a058584d4c
commit 4df43cc263
1 changed files with 8 additions and 0 deletions

View File

@ -513,6 +513,14 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
whichHWND, object->glCtx, object->win, object->visInfo); whichHWND, object->glCtx, object->win, object->visInfo);
} }
/* If not windowed, need to go fullscreen, and resize the HWND to the appropriate */
/* dimensions */
if (!pPresentationParameters->Windowed) {
FIXME("Requested full screen support not implemented, expect windowed operation\n");
SetWindowPos(whichHWND, HWND_TOP, 0, 0, pPresentationParameters->BackBufferWidth,
pPresentationParameters->BackBufferHeight, SWP_SHOWWINDOW);
}
TRACE("Creating back buffer\n"); TRACE("Creating back buffer\n");
/* MSDN: If Windowed is TRUE and either of the BackBufferWidth/Height values is zero, /* MSDN: If Windowed is TRUE and either of the BackBufferWidth/Height values is zero,
then the corresponding dimension of the client area of the hDeviceWindow then the corresponding dimension of the client area of the hDeviceWindow