all repos — mgba @ 43ddcf56ccacd251713804c3e166c6833518ec0c

mGBA Game Boy Advance Emulator

Qt: Show window later that usual to ensure that it scales properly initially
Jeffrey Pfau jeffrey@endrift.com
Sat, 24 Jan 2015 15:50:04 -0800
commit

43ddcf56ccacd251713804c3e166c6833518ec0c

parent

19758d711528b15a255b353d1ef740d516b8685e

1 files changed, 12 insertions(+), 6 deletions(-)

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

@@ -23,18 +23,24 @@ #ifdef BUILD_SDL

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