From b504363b9de815f9849fafe89d8ca020585438b7 Mon Sep 17 00:00:00 2001 From: ck Date: Thu, 21 Mar 2024 10:23:11 +0800 Subject: [PATCH] chore: use QT_SCALE_FACOTR set scale factor see https://doc.qt.io/qt-5/highdpi.html --- src/dbus/applicationservice.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dbus/applicationservice.cpp b/src/dbus/applicationservice.cpp index 8abc1e4..1e3d4c4 100644 --- a/src/dbus/applicationservice.cpp +++ b/src/dbus/applicationservice.cpp @@ -53,8 +53,7 @@ void ApplicationService::appendExtraEnvironments(QVariantMap &runtimeOptions) co { QString oldEnv; // scale factor - // NOTE: Use QT_SCREEN_SCALE_FACTOR in multi-monitor situations, as this feature may be added in the future - static QStringList scaleEnvs{"DEEPIN_WINE_SCALE=%1;", "QT_SCREEN_SCALE_FACTOR=%1;"}; + static QStringList scaleEnvs{"DEEPIN_WINE_SCALE=%1;", "QT_SCALE_FACTOR=%1;"}; auto factor = scaleFactor(); if (auto it = runtimeOptions.find("env"); it != runtimeOptions.cend()) { oldEnv = it->value();