Qt: Show window later that usual to ensure that it scales properly initially

This commit is contained in:
Jeffrey Pfau 2015-01-24 15:50:04 -08:00
parent 19758d7115
commit 43ddcf56cc
1 changed files with 12 additions and 6 deletions

View File

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