summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-23 15:37:12 +0200
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-23 16:31:11 +0200
commit40f2c3ffdbcd700ed65b72a8cad1e7ce2c009e68 (patch)
tree55d1ef144e1fa657ef8f24d03b5b17d906602b9c /src/gui
parentdf47e0d40290f5e40054a9612f75177d9ef8537a (diff)
Fixed clipping of non-cosmetic dashed strokes in raster paint engine.
Reviewed-by: Samuel
Diffstat (limited to 'src/gui')
-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 7c49190d82..b563735521 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(),