diff options
author | Jason Barron <jason.barron@nokia.com> | 2010-11-01 10:14:02 +0100 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@digia.com> | 2011-06-09 13:07:07 +0300 |
commit | 947af71063b407f54db2b88a59f5777c5325dac1 (patch) | |
tree | ed145cf336fe33c7ff5bae9046c9893660e82a5e | |
parent | 2cfdfdd350d21c410998ac4c1da98f689797c856 (diff) | |
download | qt4-tools-947af71063b407f54db2b88a59f5777c5325dac1.tar.gz |
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)
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index fdeb4fe76c..1a26b0197e 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(); } |