From f70bf280c622364de7ff8e50bde951fdf9fa6b37 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 8 Mar 2023 17:24:40 +0100 Subject: [PATCH] Gui: fix possibly garbled toolbars and menus See also Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986821 For now enable this line only for Windows builds --- src/Gui/Application.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Application.cpp b/src/Gui/Application.cpp index 5b5197e716..077af9fafb 100644 --- a/src/Gui/Application.cpp +++ b/src/Gui/Application.cpp @@ -1875,7 +1875,7 @@ void Application::runApplication() #if QT_VERSION < QT_VERSION_CHECK(6,0,0) QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif -#if QT_VERSION >= QT_VERSION_CHECK(5,14,0) +#if QT_VERSION >= QT_VERSION_CHECK(5,14,0) && defined(Q_OS_WIN) QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #endif }