From 27b34182c7db86af70657f8bab6b452ca29b9721 Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 22 May 2017 08:53:17 +0100 Subject: [PATCH] Launcher: Enable DPI-scaling (for Windows especially) --- src/GUI/QtLauncher.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 940e9c93c..a06e7e020 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -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");