1
0
Fork 0

Launcher: Enable DPI-scaling

(for Windows especially)
This commit is contained in:
James Turner 2017-05-22 08:53:17 +01:00
parent 15c84139fa
commit 27b34182c7

View file

@ -253,6 +253,9 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
// whichever log locations SimGear has configured
qInstallMessageHandler(simgearMessageOutput);
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication* app = new QApplication(s_argc, argv);
app->setOrganizationName("FlightGear");
app->setApplicationName("FlightGear");