]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
disable HighDPI scaling on Linux
authortobtoht <tob@featherwallet.org>
Tue, 27 Dec 2022 12:39:53 +0000 (13:39 +0100)
committertobtoht <tob@featherwallet.org>
Tue, 27 Dec 2022 12:39:53 +0000 (13:39 +0100)
src/main.cpp

index 66e78aaa306ee9fdbd090b691b51d7c63b6f3863..7b0ff4967507d4192921a96e5ca83f0a3206762c 100644 (file)
@@ -37,6 +37,11 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
 }
 #endif
 
+// Disable High DPI scaling on Linux for now
+#if defined(Q_OS_LINUX)
+    qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");
+#endif
+
     QStringList argv_;
     for(int i = 0; i != argc; i++){
         argv_ << QString::fromStdString(argv[i]);