From edd624f6b889fbfc8bb7d83ee122b73f9ca2c95f Mon Sep 17 00:00:00 2001 From: Donald Carr Date: Tue, 12 Dec 2017 09:12:49 -0800 Subject: [PATCH] Enable high dpi on Linux Change-Id: Ib2e93e386acb23c27f1542a939a29e21d8c56d8c --- src/app/main.cpp | 2 +- src/shared/qbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/main.cpp b/src/app/main.cpp index fa6e93ef8e..06c3c48633 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -159,7 +159,7 @@ static inline int askMsgSendFailed() static void setHighDpiEnvironmentVariable() { static const char ENV_VAR_QT_DEVICE_PIXEL_RATIO[] = "QT_DEVICE_PIXEL_RATIO"; - if (Utils::HostOsInfo().isWindowsHost() + if (!Utils::HostOsInfo().isMacHost() && !qEnvironmentVariableIsSet(ENV_VAR_QT_DEVICE_PIXEL_RATIO) // legacy in 5.6, but still functional && !qEnvironmentVariableIsSet("QT_AUTO_SCREEN_SCALE_FACTOR") && !qEnvironmentVariableIsSet("QT_SCALE_FACTOR") -- 2.15.1