summarylogtreecommitdiffstats
path: root/0001-Enable-high-dpi-on-Linux.patch
blob: 551235fb575d41e2b161f568ad95e7dbf554539d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From edd624f6b889fbfc8bb7d83ee122b73f9ca2c95f Mon Sep 17 00:00:00 2001
From: Donald Carr <d@chaos-reins.com>
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