summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@nokia.com>2010-09-14 05:28:14 (GMT)
committerGunnar Sletta <gunnar.sletta@nokia.com>2010-09-14 05:38:20 (GMT)
commite74d609b93f3480c239c4921c1683b3944aff44f (patch)
treef1ab883d4cc5ead47b1baf9e15913f4ae7025847 /src/openvg
parentf4dc906af870b2ed0d1446bb223e70db31791e8b (diff)
downloadQt-e74d609b93f3480c239c4921c1683b3944aff44f.zip
Qt-e74d609b93f3480c239c4921c1683b3944aff44f.tar.gz
Qt-e74d609b93f3480c239c4921c1683b3944aff44f.tar.bz2
Fix top-left corner of rounded rects in QPaintEngineEx
Reviewed-by: Rhys Weatherley
Diffstat (limited to 'src/openvg')
-rw-r--r--src/openvg/qpaintengine_vg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index 1b0c5e8..3c2fd3d 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -1008,7 +1008,7 @@ VGPath QVGPaintEnginePrivate::roundedRectPath(const QRectF &rect, qreal xRadius,
x1, y2 - (1 - KAPPA) * yRadius,
x1, y2 - yRadius,
x1, y1 + yRadius, // LineTo
- x1, y1 + KAPPA * yRadius, // CurveTo
+ x1, y1 + (1 - KAPPA) * yRadius, // CurveTo
x1 + (1 - KAPPA) * xRadius, y1,
x1 + xRadius, y1
};