From 2ec6b684f23db590f795143a3c586af3bb0daff7 Mon Sep 17 00:00:00 2001 From: Andrettin <6322423+Andrettin@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:40:27 +0100 Subject: [PATCH] Fixed DPI scaling under Windows --- src/stratagus/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stratagus/main.cpp b/src/stratagus/main.cpp index d0ab77e22..c0fb77102 100644 --- a/src/stratagus/main.cpp +++ b/src/stratagus/main.cpp @@ -99,6 +99,10 @@ int main(int argc, char **argv) try { qInstallMessageHandler(log::log_qt_message); +#ifdef Q_OS_WINDOWS + qputenv("QT_ENABLE_HIGHDPI_SCALING", "0"); +#endif + QApplication app(argc, argv); app.setApplicationName(NAME); app.setApplicationVersion(VERSION);