mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 11:51:09 +08:00
Fix fullscreen mode occasionally switched to windowed mode
This commit is contained in:
parent
5a551035bc
commit
75fd366a34
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user