summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-09-14 08:38:45 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-09-14 08:38:45 (GMT)
commit8d596ad475a5874c9d271799ee65e0607658c82b (patch)
tree2f7ec33698fb54aaf3b5b3fc35235e7ddc4493a2
parent9e3fb515207f8d80fe87b6e34e78d3d201b0b438 (diff)
downloadQt-8d596ad475a5874c9d271799ee65e0607658c82b.zip
Qt-8d596ad475a5874c9d271799ee65e0607658c82b.tar.gz
Qt-8d596ad475a5874c9d271799ee65e0607658c82b.tar.bz2
Fixed bad gradient offsets on Mac OS X
When an engine supports pixmap transformations natively, there will still be a redirection offset in the matrix even after calling resetMatrix(), so this is not enough, we need to set it to an actual identity. Reviewed-by: Trond
-rw-r--r--src/gui/painting/qpainter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp
index a9257c7..beda9d6 100644
--- a/src/gui/painting/qpainter.cpp
+++ b/src/gui/painting/qpainter.cpp
@@ -475,7 +475,8 @@ void QPainterPrivate::draw_helper(const QPainterPath &originalPath, DrawOperatio
p.end();
q->save();
- q->resetMatrix();
+ state->matrix = QTransform();
+ state->dirtyFlags |= QPaintEngine::DirtyTransform;
updateState(state);
engine->drawImage(absPathRect,
image,