Readjust the window size if the status bar is hidden.

Show the OSD if the status bar is hidden.
This commit is contained in:
skidau 2015-06-10 06:48:21 +00:00
parent 8e57e850a4
commit 0d4cfaf056
2 changed files with 2 additions and 1 deletions

View File

@ -2674,6 +2674,7 @@ EVT_HANDLER(StatusBar, "Enable status bar")
mf->GetStatusBar()->Hide(); mf->GetStatusBar()->Hide();
mf->SendSizeEvent(); mf->SendSizeEvent();
panel->AdjustSize(true);
} }
EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages") EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages")

View File

@ -1808,7 +1808,7 @@ void DrawingPanel::DrawArea(u8** data)
// draw OSD text old-style (directly into output buffer), if needed // draw OSD text old-style (directly into output buffer), if needed
// new style flickers too much, so we'll stick to this for now // new style flickers too much, so we'll stick to this for now
if (wxGetApp().frame->IsFullScreen()) if (wxGetApp().frame->IsFullScreen() || !gopts.statusbar)
{ {
GameArea* panel = wxGetApp().frame->GetPanel(); GameArea* panel = wxGetApp().frame->GetPanel();