Launcher: Enable DPI-scaling
(for Windows especially)
This commit is contained in:
parent
15c84139fa
commit
27b34182c7
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ void initApp(int& argc, char** argv, bool doInitQSettings)
|
||||||
// whichever log locations SimGear has configured
|
// whichever log locations SimGear has configured
|
||||||
qInstallMessageHandler(simgearMessageOutput);
|
qInstallMessageHandler(simgearMessageOutput);
|
||||||
|
|
||||||
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
|
||||||
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||||
|
#endif
|
||||||
QApplication* app = new QApplication(s_argc, argv);
|
QApplication* app = new QApplication(s_argc, argv);
|
||||||
app->setOrganizationName("FlightGear");
|
app->setOrganizationName("FlightGear");
|
||||||
app->setApplicationName("FlightGear");
|
app->setApplicationName("FlightGear");
|
||||||
|
|
Loading…
Reference in a new issue