first ChangeDisplaySettings and then SetWindowPos - Fixes fullscreen problems with lower resolutions in ubuntu
This commit is contained in:
parent
422fa30d4a
commit
eb93d12e1d
1 changed files with 2 additions and 2 deletions
|
@ -429,13 +429,13 @@ HRESULT __stdcall ddraw_SetDisplayMode(IDirectDrawImpl *This, DWORD width, DWORD
|
|||
}
|
||||
else
|
||||
{
|
||||
SetWindowPos(This->hWnd, HWND_TOPMOST, 0, 0, This->render.width, This->render.height, SWP_SHOWWINDOW);
|
||||
|
||||
if(!This->devmode && ChangeDisplaySettings(&This->render.mode, CDS_FULLSCREEN) != DISP_CHANGE_SUCCESSFUL)
|
||||
{
|
||||
This->render.run = FALSE;
|
||||
return DDERR_INVALIDMODE;
|
||||
}
|
||||
|
||||
SetWindowPos(This->hWnd, HWND_TOPMOST, 0, 0, This->render.width, This->render.height, SWP_SHOWWINDOW);
|
||||
|
||||
mouse_lock();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue