Blame SOURCES/qtbase-hidpi_scale_at_192.patch

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