all repos — mgba @ f0f929665e0e2497bed27b2d7300973c4122bb96

mGBA Game Boy Advance Emulator

Qt: Fix window geometry on launch when window is still hidden
Jeffrey Pfau jeffrey@endrift.com
Fri, 09 Jan 2015 23:23:31 -0800
commit

f0f929665e0e2497bed27b2d7300973c4122bb96

parent

76bf0427f149344cd1df120207d477ab5b36d0df

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/platform/qt/GBAApp.cppsrc/platform/qt/GBAApp.cpp

@@ -26,15 +26,15 @@

QApplication::setApplicationName(PROJECT_NAME); QApplication::setApplicationVersion(PROJECT_VERSION); + m_window.show(); + GBAArguments args = {}; if (m_configController.parseArguments(&args, argc, argv)) { - m_window.argumentsPassed(&args); + m_window.argumentsPassed(&args); } else { - m_window.loadConfig(); + m_window.loadConfig(); } freeArguments(&args); - - m_window.show(); } bool GBAApp::event(QEvent* event) {