Fix fullscreen mode occasionally switched to windowed mode

This commit is contained in:
maron2000 2025-02-12 18:59:35 +09:00
parent 5a551035bc
commit 75fd366a34

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