diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-20 08:17:12 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-25 08:43:51 (GMT) |
commit | fc0b94eb37f5aee0d4921f3c87c87527c5aa8585 (patch) | |
tree | 268bc701ed291c787c3ec08d9458749b4bce486e /src/gui/painting/qpaintengineex.cpp | |
parent | 7c0073aaa23769a9e9ec08d595190ce61227ae8c (diff) | |
download | Qt-fc0b94eb37f5aee0d4921f3c87c87527c5aa8585.zip Qt-fc0b94eb37f5aee0d4921f3c87c87527c5aa8585.tar.gz Qt-fc0b94eb37f5aee0d4921f3c87c87527c5aa8585.tar.bz2 |
Fixed bug in QPaintEngineEx::drawTiledPixmap fallback code.
The brush transform needs to include the rect position.
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qpaintengineex.cpp')
-rw-r--r-- | src/gui/painting/qpaintengineex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpaintengineex.cpp b/src/gui/painting/qpaintengineex.cpp index 8eaad60..74338b6 100644 --- a/src/gui/painting/qpaintengineex.cpp +++ b/src/gui/painting/qpaintengineex.cpp @@ -778,7 +778,7 @@ void QPaintEngineEx::drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, con { QBrush brush(state()->pen.color(), pixmap); QTransform xform; - xform.translate(-s.x(), -s.y()); + xform.translate(r.x() - s.x(), r.y() - s.y()); brush.setTransform(xform); qreal pts[] = { r.x(), r.y(), |