mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-18 02:01:33 +00:00
Fix toggling fullscreen mode with vid_restart partial, esp for Alt-Enter
Toggling with Alt-Enter relies on idRenderSystem::IsFullScreen() which returns glConfig.isFullscreen That can only work if GLimp_SetScreenParms() actually sets glConfig.isFullscreen Thanks j4reporting for reporting this! :)
This commit is contained in:
parent
44d19a4175
commit
c096a86ce8
1 changed files with 2 additions and 0 deletions
|
@ -691,6 +691,8 @@ bool GLimp_SetScreenParms(glimpParms_t parms) {
|
|||
}
|
||||
}
|
||||
|
||||
glConfig.isFullscreen = (SDL_GetWindowFlags( window ) & SDL_WINDOW_FULLSCREEN) != 0;
|
||||
|
||||
return true;
|
||||
|
||||
#else // SDL1.2 - I don't feel like implementing this for old SDL, just do a full vid_restart, like before
|
||||
|
|
Loading…
Reference in a new issue