From: tobtoht Date: Tue, 27 Dec 2022 12:39:53 +0000 (+0100) Subject: disable HighDPI scaling on Linux X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=6a0cd06d4c4ffb469baa08d49040a22937e825a3;p=gamesguru%2Ffeather.git disable HighDPI scaling on Linux --- 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]);