From 72333aec59b5e85c3194277fa29d5123a4b40694 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sat, 8 Sep 2018 17:10:42 +0300 Subject: Enable Qt auto scaling fixes #397 --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index b71aa627..77e62381 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -109,6 +109,9 @@ main(int argc, char *argv[]) if (factor != -1) qputenv("QT_SCALE_FACTOR", QString::number(factor).toUtf8()); + + if (factor == -1 || factor == 1) + qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); } #endif -- cgit 1.4.1