diff options
author | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-04-12 11:33:26 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@nokia.com> | 2010-04-12 12:11:47 (GMT) |
commit | c41dbbb5e6495e26cd3223d39c61decd951afeba (patch) | |
tree | c8b2a900ff5ad03e1e3f52c8bf23e2192474f8cb /src/gui/painting | |
parent | a6453627640151474c5348f09ff9e8b592648c70 (diff) | |
download | Qt-c41dbbb5e6495e26cd3223d39c61decd951afeba.zip Qt-c41dbbb5e6495e26cd3223d39c61decd951afeba.tar.gz Qt-c41dbbb5e6495e26cd3223d39c61decd951afeba.tar.bz2 |
Increased the precision used to flatten beziers
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qbezier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qbezier.cpp b/src/gui/painting/qbezier.cpp index ea7fe4f..a08c79e 100644 --- a/src/gui/painting/qbezier.cpp +++ b/src/gui/painting/qbezier.cpp @@ -117,8 +117,8 @@ QBezier QBezier::mapBy(const QTransform &transform) const return QBezier::fromPoints(transform.map(pt1()), transform.map(pt2()), transform.map(pt3()), transform.map(pt4())); } -//0.5 is really low -static const qreal flatness = 0.5; +//0.05 is really low, but required for scaled-up beziers... +static const qreal flatness = 0.05; //based on "Fast, precise flattening of cubic Bezier path and offset curves" // by T. F. Hain, A. L. Ahmad, S. V. R. Racherla and D. D. Langan |