summaryrefslogtreecommitdiffstats
path: root/src/openvg
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-09-21 23:08:58 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-09-21 23:08:58 (GMT)
commitc3a61f2a5d85503df84a818a7c15ef7c644fb981 (patch)
tree41d6954e4fa1de6e7ef74fdbfefa412731782c46 /src/openvg
parent442564951e6ef8469f09c3e4a49288620db3a986 (diff)
downloadQt-c3a61f2a5d85503df84a818a7c15ef7c644fb981.zip
Qt-c3a61f2a5d85503df84a818a7c15ef7c644fb981.tar.gz
Qt-c3a61f2a5d85503df84a818a7c15ef7c644fb981.tar.bz2
Calculate scissor correctly in OpenVG engine
Reviewed-by: trustme
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 46abbea..34f9cf8 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -2092,7 +2092,7 @@ void QVGPaintEngine::updateScissor()
if (region.isEmpty())
region = d->maskRect;
else
- region.intersect(d->maskRect);
+ region = region.intersect(d->maskRect);
if (isDefaultClipRegion(region)) {
// The scissor region is the entire drawing surface,
// so there is no point doing any scissoring.