From 9f76ed8d0d524b7d962d2b93133d140b0c990e9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Sch=C3=BCrmann?= Date: Sat, 31 Jul 2021 01:10:32 +0200 Subject: [PATCH] Set the the HighDpiScaleFactorRoundingPolicy to PassThrough --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2b14af19671..76138ba9187 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -51,6 +51,12 @@ int main(int argc, char * argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) + // Follow whatever factor the user has selected in the system settings + // By default the value is always rounded to the nearest int. + QGuiApplication::setHighDpiScaleFactorRoundingPolicy( + Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); +#endif // Setting the organization name results in a QDesktopStorage::DataLocation // of "$HOME/Library/Application Support/Mixxx/Mixxx" on OS X. Leave the