diff options
author | Daniel Molkentin <danimo@owncloud.com> | 2016-03-30 19:24:00 +0300 |
---|---|---|
committer | Daniel Molkentin <danimo@owncloud.com> | 2016-03-30 19:25:30 +0300 |
commit | 9ea191f63de6e008cc0507f5e03881688434bff7 (patch) | |
tree | 36d75fb66baa4b4873d1d79c0bbee5e728f6f275 /src/gui/main.cpp | |
parent | dd8b0c3e4a3263b936c2a860fe0bb2d592613802 (diff) |
Scale correctly with HiDPI displays on Linux with Qt 5.6
Diffstat (limited to 'src/gui/main.cpp')
-rw-r--r-- | src/gui/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 28a6858f6..ff5434ae7 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -47,18 +47,18 @@ int main(int argc, char **argv) { Q_INIT_RESOURCE(client); -#ifdef Q_OS_WIN +#ifndef Q_OS_MAC // If the font size ratio is set on Windows, we need to // enable the auto pixelRatio in Qt since we don't // want to use sizes relative to the font size everywhere. - // This is automatic on OS X, but opt-in on Windows + // This is automatic on OS X, but opt-in on Windows and Linux // https://doc-snapshots.qt.io/qt5-5.6/highdpi.html#qt-support #if QT_VERSION < QT_VERSION_CHECK(5, 6, 0) qputenv("QT_DEVICE_PIXEL_RATIO", "auto"); #else qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif -#endif // Q_OS_WIN +#endif // !Q_OS_MAC #ifdef Q_OS_MAC Mac::CocoaInitializer cocoaInit; // RIIA |