[cairo-commit] svg2png/src svg2png.c,1.5,1.6

Carl Worth commit at pdx.freedesktop.org
Fri Apr 1 18:01:33 PST 2005


Committed by: cworth

Update of /cvs/cairo/svg2png/src
In directory gabe:/tmp/cvs-serv22329/src

Modified Files:
	svg2png.c 
Log Message:

        * src/svg2png.c: (render_to_png): Track removal of
        cairo_set_target_png.


Index: svg2png.c
===================================================================
RCS file: /cvs/cairo/svg2png/src/svg2png.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- svg2png.c	20 Jan 2005 16:39:15 -0000	1.5
+++ svg2png.c	2 Apr 2005 02:01:31 -0000	1.6
@@ -130,13 +130,15 @@
 
     cairo_scale (cr, scale, scale);
 
-    cairo_set_target_png (cr, png_file, CAIRO_FORMAT_ARGB32, width, height);
+    cairo_set_target_image_no_data (cr, CAIRO_FORMAT_ARGB32, width, height);
 
     /* XXX: This probably doesn't need to be here (eventually) */
     cairo_set_rgb_color (cr, 1, 1, 1);
 
     svg_cairo_render (svgc, cr);
 
+    cairo_surface_write_png (cairo_get_target_surface (cr), png_file);
+
     svg_cairo_destroy (svgc);
 
     cairo_destroy (cr);




More information about the cairo-commit mailing list