From e6231e9ef5d20e945a0f351377cb885ff31fed56 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 15 Jun 2015 21:36:11 +1000 Subject: [PATCH] Switch to fullscreen after the game starts so that the GUI does not fall over. --- src/wx/guiinit.cpp | 2 +- src/wx/panel.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wx/guiinit.cpp b/src/wx/guiinit.cpp index 20a25c82..b323fb0b 100644 --- a/src/wx/guiinit.cpp +++ b/src/wx/guiinit.cpp @@ -3802,7 +3802,7 @@ bool MainFrame::BindControls() #endif // delayed fullscreen - if (wxGetApp().pending_fullscreen || fullScreen) + if (wxGetApp().pending_fullscreen) panel->ShowFullScreen(true); MainFrame* mf = wxGetApp().frame; diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index 7ae01f6f..c3457d8a 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -304,6 +304,9 @@ void GameArea::LoadGame(const wxString &name) emusys = &GBASystem; } + if (fullScreen) + GameArea::ShowFullScreen(true); + loaded = t; SetFrameTitle(); SetFocus();