From 6a0cd06d4c4ffb469baa08d49040a22937e825a3 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 27 Dec 2022 13:39:53 +0100 Subject: [PATCH] disable HighDPI scaling on Linux --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 66e78aaa..7b0ff496 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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]); -- 2.52.0