summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpaintengineex.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-23 13:37:12 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-23 14:31:11 (GMT)
commit40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68 (patch)
tree55d1ef144e1fa657ef8f24d03b5b17d906602b9c /src/gui/painting/qpaintengineex.cpp
parentdf47e0d40290f5e40054a9612f75177d9ef8537a (diff)
downloadQt-40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68.zip
Qt-40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68.tar.gz
Qt-40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68.tar.bz2
Fixed clipping of non-cosmetic dashed strokes in raster paint engine.
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/painting/qpaintengineex.cpp')
-rw-r--r--src/gui/painting/qpaintengineex.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/painting/qpaintengineex.cpp b/src/gui/painting/qpaintengineex.cpp
index 7c49190..b563735 100644
--- a/src/gui/painting/qpaintengineex.cpp
+++ b/src/gui/painting/qpaintengineex.cpp
@@ -328,12 +328,7 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
flags |= QVectorPath::CurvedShapeHint;
// ### Perspective Xforms are currently not supported...
- qreal txscale = 1;
- if (!(pen.isCosmetic() || (qt_scaleForTransform(state()->matrix, &txscale) && txscale != 1))) {
- // We include cosmetic pens in this case to avoid having to
- // change the current transform. Normal transformed,
- // non-cosmetic pens will be transformed as part of fill
- // later, so they are also covered here..
+ if (!pen.isCosmetic()) {
if (types) {
while (points < lastPoint) {
switch (*types) {
@@ -385,8 +380,6 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
QVectorPath::WindingFill);
fill(strokePath, pen.brush());
} else {
- const qreal strokeWidth = d->stroker.strokeWidth();
- d->stroker.setStrokeWidth(strokeWidth * txscale);
// For cosmetic pens we need a bit of trickery... We to process xform the input points
if (types) {
while (points < lastPoint) {
@@ -440,7 +433,6 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen)
}
d->activeStroker->end();
- d->stroker.setStrokeWidth(strokeWidth);
QVectorPath strokePath(d->strokeHandler->pts.data(),
d->strokeHandler->types.size(),
d->strokeHandler->types.data(),