summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-02 15:58:56 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-02 15:58:56 (GMT)
commit915f20bb167aa09ca8c8db478a2a78d5e357b67e (patch)
tree6158c22cd15428c370bfcaf2d0e2e5de276d8bd6
parent243163c3f61c79146c37da0a4da4bacafa8e1321 (diff)
downloadQt-915f20bb167aa09ca8c8db478a2a78d5e357b67e.zip
Qt-915f20bb167aa09ca8c8db478a2a78d5e357b67e.tar.gz
Qt-915f20bb167aa09ca8c8db478a2a78d5e357b67e.tar.bz2
Better cosmetic pen scaling for beziers in tristroker.
Reviewed-By: Samuel
-rw-r--r--src/opengl/gl2paintengineex/qtriangulatingstroker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp b/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
index ad18a51..1163eba 100644
--- a/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
+++ b/src/opengl/gl2paintengineex/qtriangulatingstroker.cpp
@@ -114,7 +114,7 @@ void QTriangulatingStroker::process(const QVectorPath &path, const QPen &pen)
if (m_join_style == Qt::RoundJoin)
m_join_style = Qt::MiterJoin;
m_curvyness_add = 0.5;
- m_curvyness_mul = CURVE_FLATNESS;
+ m_curvyness_mul = CURVE_FLATNESS / m_inv_scale;
m_roundness = 1;
} else if (cosmetic) {
m_curvyness_add = realWidth / 2;