summaryrefslogtreecommitdiffstats
path: root/src/openvg/qpaintengine_vg.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-23 23:50:04 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-23 23:50:04 (GMT)
commit63299bbbc34521785408163e3fd516779f343201 (patch)
tree88363638db8ad22d1d216294d15974bd3bf1d7a8 /src/openvg/qpaintengine_vg.cpp
parentf6b942b88ed2519b73c540120fde73390716173f (diff)
downloadQt-63299bbbc34521785408163e3fd516779f343201.zip
Qt-63299bbbc34521785408163e3fd516779f343201.tar.gz
Qt-63299bbbc34521785408163e3fd516779f343201.tar.bz2
Fix cubic paths in OpenVG
The multitouch/dials example was displaying rendering artifacts on the dials in the default style. This was due to incorrect VGPath construction when sizeof(qreal) == sizeof(VGfloat). It was adding two VG_CUBIC_TO_ABS elements per cubic instead of one. Task-number: QT-2035 Reviewed-by: Sarah Smith
Diffstat (limited to 'src/openvg/qpaintengine_vg.cpp')
-rw-r--r--src/openvg/qpaintengine_vg.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index 34f9cf8..3558c28 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -566,11 +566,11 @@ VGPath QVGPaintEnginePrivate::vectorPathToVGPath(const QVectorPath& path)
case QPainterPath::LineToElement:
segments.append(VG_LINE_TO_ABS); break;
- case QPainterPath::CurveToElement: break;
-
- case QPainterPath::CurveToDataElement:
+ case QPainterPath::CurveToElement:
segments.append(VG_CUBIC_TO_ABS); break;
+ case QPainterPath::CurveToDataElement: break;
+
}
}
if (path.hasImplicitClose())