summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Barron <jason.barron@nokia.com>2010-11-01 09:14:02 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:07:07 (GMT)
commit947af71063b407f54db2b88a59f5777c5325dac1 (patch)
treeed145cf336fe33c7ff5bae9046c9893660e82a5e /src
parent2cfdfdd350d21c410998ac4c1da98f689797c856 (diff)
downloadQt-947af71063b407f54db2b88a59f5777c5325dac1.zip
Qt-947af71063b407f54db2b88a59f5777c5325dac1.tar.gz
Qt-947af71063b407f54db2b88a59f5777c5325dac1.tar.bz2
Fix OpenVG painting artifacts after restoreState().
When the state is restored and the 'dirty' flag indicates that the clip state has changed, the paint engine needs to set 'scissorDirty' flag to true so that updateScissor() applies the restored clip region to the scissor rects. Task-number: QTBUG-14907 Reviewed-by: Jani Hautakangas (cherry picked from commit 99ee75f6df588103f83fc807e6ee686971cc18df)
Diffstat (limited to 'src')
-rw-r--r--src/openvg/qpaintengine_vg.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp
index fdeb4fe..1a26b01 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -3536,6 +3536,7 @@ void QVGPaintEngine::restoreState(QPaintEngine::DirtyFlags dirty)
d->maskIsSet = false;
d->scissorMask = false;
d->maskRect = QRect();
+ d->scissorDirty = true;
clipEnabledChanged();
}