diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2009-09-24 02:41:51 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-09-24 02:41:51 (GMT) |
commit | 32e6e9c9353dd7d9ad80f12223698e1098047f6a (patch) | |
tree | 55d1ef144e1fa657ef8f24d03b5b17d906602b9c | |
parent | b6dd73da6a560a3ca6a2eb9dd7601fd13aef64d1 (diff) | |
parent | 40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68 (diff) | |
download | Qt-32e6e9c9353dd7d9ad80f12223698e1098047f6a.zip Qt-32e6e9c9353dd7d9ad80f12223698e1098047f6a.tar.gz Qt-32e6e9c9353dd7d9ad80f12223698e1098047f6a.tar.bz2 |
Merge branch '4.5' of git@scm.dev.nokia.troll.no:qt/qt into 4.5
-rw-r--r-- | src/gui/painting/qpaintengineex.cpp | 10 |
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(), |