[lasem] svg_view: add code for mask surface debugging.



commit 2ff6e3b989e1f4dc9d9541639bcca55e7747f2e0
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Fri Aug 27 11:38:41 2010 +0200

    svg_view: add code for mask surface debugging.

 src/lsmsvgview.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index b975f6c..a17655a 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -786,7 +786,7 @@ _paint_url (LsmSvgView *view,
 		if (LSM_IS_SVG_PATTERN_ELEMENT (element)) {
 			char *filename;
 
-			filename = g_strdup_printf ("%s.png", url);
+			filename = g_strdup_printf ("pattern-%s.png", url);
 			cairo_surface_write_to_png (cairo_get_target (view->dom_view.cairo), filename);
 			g_free (filename);
 		}
@@ -1840,7 +1840,13 @@ lsm_svg_view_pop_mask (LsmSvgView *view)
 						  &view->pattern_data->matrix);
 			cairo_pattern_set_extend (view->pattern_data->pattern, CAIRO_EXTEND_NONE);
 #if 0
-			cairo_surface_write_to_png (surface, "mask.png");
+			{
+				char *filename;
+
+				filename = g_strdup_printf ("mask-%s.png", view->style->mask->value);
+				cairo_surface_write_to_png (cairo_get_target (view->dom_view.cairo), filename);
+				g_free (filename);
+			}
 #endif
 			cairo_mask (cairo, view->pattern_data->pattern);
 		} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]