From 0194ebb2229adc33f5b9790231a3384b46474bde Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 30 May 2016 06:55:31 +0200 Subject: [PATCH] Don't try to determine pixel ratio with Qt < 5.6.0 This seems to be broken. Worst case users can still set it manually Addresses #4840 --- src/gui/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index 1a13d1f9a..2b395d580 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -53,9 +53,7 @@ int main(int argc, char **argv) // want to use sizes relative to the font size everywhere. // 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 +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1"); #endif #endif // !Q_OS_MAC -- 2.39.5