all repos — mgba @ fc0450119a1ff9c9af1b5e53c27aea934ed7cd61

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

fc0450119a1ff9c9af1b5e53c27aea934ed7cd61

parent

a46bf5ef32c64f53dc6c65df4f5f2602abeb275d

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) {