From 94480c881ac15e01e321fc3698d3239568efad67 Mon Sep 17 00:00:00 2001 From: skidau Date: Wed, 10 Jun 2015 06:48:21 +0000 Subject: [PATCH] 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 --- src/wx/cmdevents.cpp | 1 + src/wx/panel.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wx/cmdevents.cpp b/src/wx/cmdevents.cpp index b1f7071c..3ba63843 100644 --- a/src/wx/cmdevents.cpp +++ b/src/wx/cmdevents.cpp @@ -2674,6 +2674,7 @@ EVT_HANDLER(StatusBar, "Enable status bar") mf->GetStatusBar()->Hide(); mf->SendSizeEvent(); + panel->AdjustSize(true); } EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages") diff --git a/src/wx/panel.cpp b/src/wx/panel.cpp index 06f3d598..30bc49f6 100644 --- a/src/wx/panel.cpp +++ b/src/wx/panel.cpp @@ -1808,7 +1808,7 @@ void DrawingPanel::DrawArea(u8** data) // draw OSD text old-style (directly into output buffer), if needed // 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();