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
1 files changed,
12 insertions(+),
6 deletions(-)
jump to
M
src/platform/qt/GBAApp.cpp
→
src/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) {