Blame SOURCES/qtbase-hidpi_scale_at_192.patch

49fdd0
diff -up qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp.hidpi_scale_at_192 qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp
49fdd0
--- qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp.hidpi_scale_at_192	2019-02-03 13:21:27.866906481 -0600
49fdd0
+++ qtbase-everywhere-src-5.12.1/src/plugins/platforms/xcb/qxcbscreen.cpp	2019-02-03 13:23:47.554767565 -0600
49fdd0
@@ -744,7 +744,7 @@ void QXcbScreen::updateGeometry(const QR
49fdd0
     // Use 128 as a reference DPI on small screens. This favors "small UI" over "large UI".
49fdd0
     qreal referenceDpi = physicalSize().width() <= 320 ? 128 : 96;
49fdd0
 
49fdd0
-    m_pixelDensity = qMax(1, qRound(dpi/referenceDpi));
49fdd0
+    m_pixelDensity = qMax(1, (int) (dpi/referenceDpi)); //instead of rounding at 1.5, round at 2.0 (same as GNOME)
b5e7a8
     m_geometry = geometry;
b5e7a8
     m_availableGeometry = geometry & m_virtualDesktop->workArea();
b5e7a8
     QWindowSystemInterface::handleScreenGeometryChange(QPlatformScreen::screen(), m_geometry, m_availableGeometry);