From ed8b834e3700d951738d285d5fa944800012c5ca Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Fri, 12 Feb 2016 22:27:01 +0100 Subject: [PATCH] hotfix : enable auto scaling for high dpi devices on windows only --- ground/gcs/src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ground/gcs/src/app/main.cpp b/ground/gcs/src/app/main.cpp index ce00b7b1a..fa1e946bb 100644 --- a/ground/gcs/src/app/main.cpp +++ b/ground/gcs/src/app/main.cpp @@ -266,12 +266,14 @@ void systemInit() // TODO revisit this... QApplication::setAttribute(Qt::AA_DontCreateNativeWidgetSiblings, true); +#ifdef Q_OS_WIN #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) // see https://doc-snapshots.qt.io/qt5-5.6/highdpi.html qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #else // see http://doc.qt.io/qt-5/highdpi.html qputenv("QT_DEVICE_PIXEL_RATIO", "auto"); +#endif #endif // Force "basic" render loop