diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2010-12-08 19:31:14 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2010-12-09 08:18:02 (GMT) |
commit | 8f5a46deb3604d1d07a7f291695f0da2b04f1b73 (patch) | |
tree | 244f1db0b8071fe929330d3193e978d2f29719e4 /src | |
parent | ec44803109910127657b214f4556651a9619430d (diff) | |
download | Qt-8f5a46deb3604d1d07a7f291695f0da2b04f1b73.zip Qt-8f5a46deb3604d1d07a7f291695f0da2b04f1b73.tar.gz Qt-8f5a46deb3604d1d07a7f291695f0da2b04f1b73.tar.bz2 |
QT::Window palette brush fails to render correctly.
QWidget uses QPainter::drawTiledPixmap to draw textured
background brush but OpenVG paint engine fails to
render pixmaps correctly because of incorrect offset
calculation.
Task-number: QTBUG-15737
Reviewed-by: Gunnar Sletta
Diffstat (limited to 'src')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index b8e8bad..13156d7 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -3210,8 +3210,7 @@ void QVGPaintEngine::drawTiledPixmap (const QRectF &r, const QPixmap &pixmap, const QPointF &s) { QBrush brush(state()->pen.color(), pixmap); - QTransform xform; - xform.translate(-s.x(), -s.y()); + QTransform xform = QTransform::fromTranslate(r.x() - s.x(), r.y() - s.y()); brush.setTransform(xform); fillRect(r, brush); } |