[cairo] [PATCH 25/39] [OpenVG] added hack that resets clipping path after cairo_mask.

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:27 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index babe2e8..946de52 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -799,6 +799,13 @@ _cairo_openvg_surface_mask (void             *asurface,
   /* upload source as image */
   status = _cairo_openvg_surface_paint (asurface, op, source);
 
+  /* reset path,. */
+
+  /* FIXME: we should have stored the previous clipping path,
+   * for now we just forcibly reset it.
+   */
+  _cairo_openvg_surface_intersect_clip_path (s, NULL, 0, 0.0, 0);
+
   return status;
 }
 
-- 
1.6.0.4



More information about the cairo mailing list