From 896f12c81429c6ea77eced7039da970795095045 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 27 Aug 2023 12:32:09 +0200 Subject: [PATCH] Set `QT_ENABLE_HIGHDPI_SCALING` to `0` on Qt 6 on Windows (#4767) --- CHANGELOG.md | 2 ++ src/main.cpp | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 420f6d5d1a7..d15def39f80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unversioned +- Dev: Temporarily disable High DPI scaling on Qt6 builds on Windows. (#4767) + ## 2.4.5 - Major: AutoMod term management messages (e.g. testaccount added "noob" as a blocked term on AutoMod.) are now hidden in Streamer Mode if you have the "Hide moderation actions" setting enabled. (#4758) diff --git a/src/main.cpp b/src/main.cpp index 303d8ea224a..9dce310a0e3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,11 @@ using namespace chatterino; int main(int argc, char **argv) { + // TODO: This is a temporary fix (see #4552). +#if defined(Q_OS_WINDOWS) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + qputenv("QT_ENABLE_HIGHDPI_SCALING", "0"); +#endif + QApplication a(argc, argv); QCoreApplication::setApplicationName("chatterino");