diff --git a/app/graphicsscene.cpp b/app/graphicsscene.cpp index 01e5686..bc1064a 100644 --- a/app/graphicsscene.cpp +++ b/app/graphicsscene.cpp @@ -29,8 +29,9 @@ public: if (qFuzzyCompare(scaleHint, m_cachedScaleHint)) return m_cachedPixmap; QSizeF resizedScale(boundingRect().size()); resizedScale *= scaleHint; - m_cachedPixmap = pixmap().scaled( - resizedScale.toSize(), + QPixmap && sourcePixmap = pixmap(); + m_cachedPixmap = sourcePixmap.scaled( + resizedScale.toSize() * sourcePixmap.devicePixelRatioF(), Qt::KeepAspectRatio, Qt::SmoothTransformation); m_cachedScaleHint = scaleHint;