summaryrefslogtreecommitdiffstats
path: root/src/core/backing_store_qt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/backing_store_qt.cpp')
-rw-r--r--src/core/backing_store_qt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/backing_store_qt.cpp b/src/core/backing_store_qt.cpp
index 613dfdbbc..fda60d094 100644
--- a/src/core/backing_store_qt.cpp
+++ b/src/core/backing_store_qt.cpp
@@ -70,11 +70,12 @@ BackingStoreQt::~BackingStoreQt()
{
}
-void BackingStoreQt::paintToTarget(QPainter* painter, const QRectF& rect)
+void BackingStoreQt::paintToTarget(QPainter* painter, const QRectF& clipRect)
{
if (m_pixelBuffer.isNull())
return;
+ QRectF rect = clipRect.isNull() ? m_pixelBuffer.rect() : clipRect;
qreal x = rect.x() * m_deviceScaleFactor;
qreal y = rect.y() * m_deviceScaleFactor;
qreal w = rect.width() * m_deviceScaleFactor;