Merge pull request #5499 from maron2000/ttf_fullscr_test

Fix fullscreen mode occasionally switched to windowed mode
This commit is contained in:
Jonathan Campbell 2025-02-16 23:18:11 -08:00 committed by GitHub
commit 312fb0102e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2707,6 +2707,10 @@ void GFX_SwitchFullScreen(void)
resetFontSize();
}
modeSwitched(sdl.desktop.fullscreen);
SetVal("sdl", "fullscreen", sdl.desktop.fullscreen?"true":"false");
bool is_showmenu=static_cast<Section_prop *>(control->GetSection("SDL"))->Get_bool("showmenu");
if(sdl.desktop.fullscreen || !is_showmenu) DOSBox_NoMenu();
else DOSBox_SetMenu();
return;
}
#endif