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:
Daniel Gibson 2024-06-11 18:32:35 +02:00
parent 44d19a4175
commit c096a86ce8

View file

@ -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