From: Martin T. H. Sandsmark Date: Sun, 25 Sep 2016 14:18:35 +0000 (+0200) Subject: Disable high DPI scaling on anything but Windows X-Git-Tag: 0.12.5~42 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=e8b5edc0d4c8ff3786fb5d4ad2994515f946ddbd Disable high DPI scaling on anything but Windows The automatic scaling only works well on Windows. See e. g. e33532e048fa12ee32429ca83ee31aa8f065147d in qttools, QTBUG-50698 and QTBUG-52318. Resolves GH-254. (cherry picked from commit 27f186f9c78928d8c929d534f9f845978ba5bc83) --- diff --git a/src/common/main.cpp b/src/common/main.cpp index 3d334956..59082425 100644 --- a/src/common/main.cpp +++ b/src/common/main.cpp @@ -180,7 +180,7 @@ int main(int argc, char **argv) #if defined BUILD_CORE CoreApplication app(argc, argv); #elif defined BUILD_QTUI -# if QT_VERSION >= 0x050600 +# if QT_VERSION >= 0x050600 && defined(Q_OS_WIN) QtUiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif # if QT_VERSION >= 0x050700 @@ -188,7 +188,7 @@ int main(int argc, char **argv) # endif QtUiApplication app(argc, argv); #elif defined BUILD_MONO -# if QT_VERSION >= 0x050600 +# if QT_VERSION >= 0x050600 && defined(Q_OS_WIN) MonolithicApplication::setAttribute(Qt::AA_EnableHighDpiScaling); #endif # if QT_VERSION >= 0x050700