Readjust the window size if the status bar is hidden.

Show the OSD if the status bar is hidden.

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1507 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
skidau 2015-06-10 06:48:21 +00:00
parent e5869253f8
commit 94480c881a
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();