From 947af71063b407f54db2b88a59f5777c5325dac1 Mon Sep 17 00:00:00 2001 From: Jason Barron Date: Mon, 1 Nov 2010 10:14:02 +0100 Subject: 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) --- src/openvg/qpaintengine_vg.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- cgit v0.12