diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-11-05 14:17:15 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-11-06 13:07:38 (GMT) |
commit | 7e280ddba9eaacb5a326a4e7f5e43c536fac8655 (patch) | |
tree | 3d99677ada7b1204c186bffa6325156ae9518a1f | |
parent | afe26380f10775b5ae16dc0e449ac7fdcb9b8054 (diff) | |
download | Qt-7e280ddba9eaacb5a326a4e7f5e43c536fac8655.zip Qt-7e280ddba9eaacb5a326a4e7f5e43c536fac8655.tar.gz Qt-7e280ddba9eaacb5a326a4e7f5e43c536fac8655.tar.bz2 |
Set strokes as non-convex by default.
Reviewed-by: Samuel
-rw-r--r-- | src/gui/painting/qpaintengineex.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintengineex.cpp b/src/gui/painting/qpaintengineex.cpp index 9e21182..1fb8aab 100644 --- a/src/gui/painting/qpaintengineex.cpp +++ b/src/gui/painting/qpaintengineex.cpp @@ -431,6 +431,10 @@ void QPaintEngineEx::stroke(const QVectorPath &path, const QPen &pen) // Some engines might decide to optimize for the non-shape hint later on... uint flags = QVectorPath::WindingFill; + + if (path.elementCount() > 2) + flags |= QVectorPath::NonConvexShapeMask; + if (d->stroker.capStyle() == Qt::RoundCap || d->stroker.joinStyle() == Qt::RoundJoin) flags |= QVectorPath::CurvedShapeMask; |