]> git.cworth.org Git - spritext/commitdiff
Make spritext write its output to a PNG file
authorCarl Worth <cworth@cworth.org>
Wed, 13 Feb 2008 18:21:56 +0000 (10:21 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 13 Feb 2008 18:21:56 +0000 (10:21 -0800)
spritext.c

index 9bcffbef94c59a5300c756d4538a925adcc351ff..a188f3e04328b0279dbcb90e6f0cd376348d57c4 100644 (file)
@@ -297,6 +297,9 @@ cairo_pattern_destroy (gradient);
     }
 #endif
 
+    cairo_surface_write_to_png (surface, "spritext-output.png");
+    printf ("Result written to spritext-output.png\n");
+
     cairo_destroy (cr);
 
     cairo_surface_destroy (surface);