diff --git a/plugins/platforms/drm/drm_output.cpp b/plugins/platforms/drm/drm_output.cpp --- a/plugins/platforms/drm/drm_output.cpp +++ b/plugins/platforms/drm/drm_output.cpp @@ -132,6 +132,8 @@ m_hasNewCursor = true; QImage *c = m_cursor[m_cursorIndex]->image(); c->fill(Qt::transparent); + c->setDevicePixelRatio(m_scale); + QPainter p; p.begin(c); if (m_orientation == Qt::InvertedLandscapeOrientation) { @@ -158,6 +160,7 @@ hotspotMatrix.rotate(180.0f, 0.0f, 0.0f, 1.0f); hotspotMatrix.translate(-cursorSize.width()/2.0, -cursorSize.height()/2.0); } + hotspotMatrix.scale(m_scale); matrix.scale(m_scale); matrix.translate(-m_globalPos.x(), -m_globalPos.y()); const QPoint p = matrix.map(globalPos) - hotspotMatrix.map(m_backend->softwareCursorHotspot());