From 387430a01f37eef956e30bb74976d5e4de26dac3 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Tue, 11 Jun 2024 19:03:54 +0200 Subject: [PATCH] Fix vid_restart partial for real fullscreen mode --- neo/renderer/RenderSystem_init.cpp | 2 +- neo/sys/glimp.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/neo/renderer/RenderSystem_init.cpp b/neo/renderer/RenderSystem_init.cpp index d76b731d..c5997b70 100644 --- a/neo/renderer/RenderSystem_init.cpp +++ b/neo/renderer/RenderSystem_init.cpp @@ -1994,7 +1994,7 @@ void R_VidRestart_f( const idCmdArgs &args ) { parms.stereo = false; 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; } } diff --git a/neo/sys/glimp.cpp b/neo/sys/glimp.cpp index ea63cd93..302b6cd6 100644 --- a/neo/sys/glimp.cpp +++ b/neo/sys/glimp.cpp @@ -668,6 +668,8 @@ bool GLimp_SetScreenParms(glimpParms_t parms) { return false; } + SDL_SetWindowFullscreen( window, SDL_WINDOW_FULLSCREEN ); + /* The SDL doku says, that SDL_SetWindowSize() shouldn't be used on fullscreen windows. But at least in my test with SDL 2.0.9 the subsequent SDL_GetWindowDisplayMode() fails