Fix vid_restart partial for real fullscreen mode

This commit is contained in:
Daniel Gibson 2024-06-11 19:03:54 +02:00
parent c096a86ce8
commit 387430a01f
2 changed files with 3 additions and 1 deletions

View file

@ -1994,7 +1994,7 @@ void R_VidRestart_f( const idCmdArgs &args ) {
parms.stereo = false; parms.stereo = false;
if ( GLimp_SetScreenParms( parms ) ) { if ( GLimp_SetScreenParms( parms ) ) {
common->Printf( "'vid_restart partial' succeeded in changing resolution and/or fullscreen mode" ); common->Printf( "'vid_restart partial' succeeded in changing resolution and/or fullscreen mode\n" );
return; return;
} }
} }

View file

@ -668,6 +668,8 @@ bool GLimp_SetScreenParms(glimpParms_t parms) {
return false; return false;
} }
SDL_SetWindowFullscreen( window, SDL_WINDOW_FULLSCREEN );
/* The SDL doku says, that SDL_SetWindowSize() shouldn't be /* The SDL doku says, that SDL_SetWindowSize() shouldn't be
used on fullscreen windows. But at least in my test with used on fullscreen windows. But at least in my test with
SDL 2.0.9 the subsequent SDL_GetWindowDisplayMode() fails SDL 2.0.9 the subsequent SDL_GetWindowDisplayMode() fails