summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Barron <jason.barron@nokia.com>2010-11-01 09:14:02 (GMT)
committerJason Barron <jason.barron@nokia.com>2010-11-01 09:37:25 (GMT)
commit99ee75f6df588103f83fc807e6ee686971cc18df (patch)
tree140d81cd70c00a4a74a7bf1ca9ba55efcfa382f9
parent349b6c734aa7af85f3709312325c3b2e9abdad2b (diff)
downloadQt-99ee75f6df588103f83fc807e6ee686971cc18df.zip
Qt-99ee75f6df588103f83fc807e6ee686971cc18df.tar.gz
Qt-99ee75f6df588103f83fc807e6ee686971cc18df.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
-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 9df32d9..ee65e48 100644
--- a/src/openvg/qpaintengine_vg.cpp
+++ b/src/openvg/qpaintengine_vg.cpp
@@ -3678,6 +3678,7 @@ void QVGPaintEngine::restoreState(QPaintEngine::DirtyFlags dirty)
d->maskIsSet = false;
d->scissorMask = false;
d->maskRect = QRect();
+ d->scissorDirty = true;
clipEnabledChanged();
}