Skip to content

Commit a6520bb

Browse files
committed
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@1507 a31d4220-a93d-0410-bf67-fe4944624d44
1 parent 240b3ea commit a6520bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

trunk/src/wx/cmdevents.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,6 +2674,7 @@ EVT_HANDLER(StatusBar, "Enable status bar")
26742674
mf->GetStatusBar()->Hide();
26752675

26762676
mf->SendSizeEvent();
2677+
panel->AdjustSize(true);
26772678
}
26782679

26792680
EVT_HANDLER(NoStatusMsg, "Disable on-screen status messages")

trunk/src/wx/panel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ void DrawingPanel::DrawArea(u8** data)
18081808

18091809
// draw OSD text old-style (directly into output buffer), if needed
18101810
// new style flickers too much, so we'll stick to this for now
1811-
if (wxGetApp().frame->IsFullScreen())
1811+
if (wxGetApp().frame->IsFullScreen() || !gopts.statusbar)
18121812
{
18131813
GameArea* panel = wxGetApp().frame->GetPanel();
18141814

0 commit comments

Comments
 (0)