From 79dae55a6106eee3a9f9233edb4f3b5d41462d57 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 5 Sep 2018 12:17:30 +0800 Subject: [PATCH] Fix GUI scaling issue on Linux It seems `QT_AUTO_SCREEN_SCALE_FACTOR` doesn't work as expected. Closes #6935. --- src/app/main.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index 66a1a7bcc..a4d0438a1 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -102,10 +102,6 @@ void displayBadArgMessage(const QString &message); #if !defined(DISABLE_GUI) void showSplashScreen(); - -#if defined(Q_OS_UNIX) -void setupDpi(); -#endif // Q_OS_UNIX #endif // DISABLE_GUI // Main @@ -120,10 +116,6 @@ int main(int argc, char *argv[]) macMigratePlists(); #endif -#if !defined(DISABLE_GUI) && defined(Q_OS_UNIX) - setupDpi(); -#endif - try { // Create Application QString appId = QLatin1String("qBittorrent-") + Utils::Misc::getUserIDString(); @@ -330,14 +322,6 @@ void showSplashScreen() QTimer::singleShot(1500, splash, &QObject::deleteLater); qApp->processEvents(); } - -#if defined(Q_OS_UNIX) -void setupDpi() -{ - if (qEnvironmentVariableIsEmpty("QT_AUTO_SCREEN_SCALE_FACTOR")) - qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); -} -#endif // Q_OS_UNIX #endif // DISABLE_GUI void displayVersion()