Blame SOURCES/qtbase-hidpi_scale_at_192.patch

b5e7a8
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp
b5e7a8
index ec0f9ba..6d0d7a6 100644
b5e7a8
--- a/src/plugins/platforms/xcb/qxcbscreen.cpp
b5e7a8
+++ b/src/plugins/platforms/xcb/qxcbscreen.cpp
b5e7a8
@@ -747,7 +747,7 @@ void QXcbScreen::updateGeometry(const QRect &geometry, uint8_t rotation)
b5e7a8
         m_sizeMillimeters = sizeInMillimeters(geometry.size(), virtualDpi());
b5e7a8
b5e7a8
     qreal dpi = geometry.width() / physicalSize().width() * qreal(25.4);
b5e7a8
-    m_pixelDensity = qMax(1, qRound(dpi/96));
b5e7a8
+    m_pixelDensity = qMax(1, (int) (dpi/96)); // 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);