mirror of https://github.com/mgba-emu/mgba.git
Qt: Show window later that usual to ensure that it scales properly initially
This commit is contained in:
parent
85fa3ac406
commit
72ad2e22d4
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue