Blame SOURCES/qtbase-hidpi_scale_at_192.patch

00803a
diff --git a/src/plugins/platforms/xcb/qxcbscreen.cpp b/src/plugins/platforms/xcb/qxcbscreen.cpp
00803a
index 5e136b5..0ad2842 100644
00803a
--- a/src/plugins/platforms/xcb/qxcbscreen.cpp
00803a
+++ b/src/plugins/platforms/xcb/qxcbscreen.cpp
00803a
@@ -620,7 +620,7 @@ void QXcbScreen::updateGeometry(const QRect &geom, uint8_t rotation)
00803a
         m_sizeMillimeters = sizeInMillimeters(xGeometry.size(), virtualDpi());
00803a
00803a
     qreal dpi = xGeometry.width() / physicalSize().width() * qreal(25.4);
00803a
-    m_pixelDensity = qMax(1, qRound(dpi/96));
00803a
+    m_pixelDensity = qMax(1, (int) (dpi/96)); // instead of rounding at 1.5, round at 2.0 (same as GNOME)
00803a
     m_geometry = QRect(xGeometry.topLeft(), xGeometry.size());
00803a
     m_availableGeometry = xGeometry & m_virtualDesktop->workArea();
00803a
     QWindowSystemInterface::handleScreenGeometryChange(QPlatformScreen::screen(), m_geometry, m_availableGeometry);