From 0a5a3c383cfb65a5b6339e3e0244f67f6809c8a6 Mon Sep 17 00:00:00 2001 From: riccardom Date: Fri, 3 Jun 2011 17:29:57 +0000 Subject: [PATCH] wx: Change rotation after setting the menu bar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I need to set the menu bar before setting the window size. Otherwise it is a little bit too short. From: Jan Bücken (nooris), #3301520 --- desmume/src/wx/wxMain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desmume/src/wx/wxMain.cpp b/desmume/src/wx/wxMain.cpp index 93f8a2bf0..83bda723f 100644 --- a/desmume/src/wx/wxMain.cpp +++ b/desmume/src/wx/wxMain.cpp @@ -716,8 +716,9 @@ DesmumeFrame::DesmumeFrame(const wxString& title) loadmenuBar(menuBar); - ChangeRotation(nds_screen_rotation_angle, false); SetMenuBar(menuBar); + + ChangeRotation(nds_screen_rotation_angle, false); } void DesmumeFrame::loadfileMenu(wxMenu *fileMenu)