summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDenis Oliver Kropp <dok@directfb.org>2011-05-19 13:51:47 (GMT)
committerMarcel Schuette <marcel.schuette@nokia.com>2011-05-19 13:51:47 (GMT)
commit841cd1500d153f5141f4c8a1e039f235c39d01f3 (patch)
tree64d342ff8e851e3f6026a71b36d431af6b27a3d4 /src/plugins
parent2e38c0b2339cdf7241ef913197bef4b992895d55 (diff)
downloadQt-841cd1500d153f5141f4c8a1e039f235c39d01f3.zip
Qt-841cd1500d153f5141f4c8a1e039f235c39d01f3.tar.gz
Qt-841cd1500d153f5141f4c8a1e039f235c39d01f3.tar.bz2
Fix brush transform in QtDirectFB backend, fixing QTBUG-18577
Merge-request: 1224 Reviewed-by: Marcel Schuette <marcel.schuette@nokia.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
index dfe5db4..d90c8ca 100644
--- a/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
+++ b/src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp
@@ -1254,7 +1254,7 @@ void QDirectFBPaintEnginePrivate::drawTiledPixmap(const QRectF &dest, const QPix
const QTransform &transform = engine->state()->matrix;
Q_ASSERT(!(getTransformationType(transform) & Matrix_BlitsUnsupported) &&
!(getTransformationType(pixmapTransform) & Matrix_BlitsUnsupported));
- const QRect destinationRect = transform.mapRect(dest).toRect().normalized();
+ const QRect destinationRect = dest.toRect();
QRect newClip = destinationRect;
if (!currentClip.isEmpty())
newClip &= currentClip;
@@ -1270,7 +1270,7 @@ void QDirectFBPaintEnginePrivate::drawTiledPixmap(const QRectF &dest, const QPix
};
surface->SetClip(surface, &clip);
- QPointF offset = pixmapTransform.inverted().map(off);
+ QPointF offset = off;
Q_ASSERT(transform.type() <= QTransform::TxScale);
QPixmapData *data = pixmap.pixmapData();
Q_ASSERT(data->classId() == QPixmapData::DirectFBClass);