[cairo-commit] test/device-offset.c

Carl Worth cworth at kemper.freedesktop.org
Wed Jun 7 10:34:01 PDT 2006


 test/device-offset.c |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)

New commits:
diff-tree 53bf2f8d5dd82e9cff0960ebec536597bc7701e9 (from 32c0e85d45ee26c34ba1af0e4ba6ced044e469cc)
Author: Carl Worth <cworth at cworth.org>
Date:   Wed Jun 7 10:29:33 2006 -0700

    Remove debugging "prints" of images from test/device-offset.c

diff --git a/test/device-offset.c b/test/device-offset.c
index 9418c60..6a23226 100644
--- a/test/device-offset.c
+++ b/test/device-offset.c
@@ -51,12 +51,10 @@ draw (cairo_t *cr, int width, int height
     cairo_surface_t *surface, *target;
     cairo_t *cr2;
 
-    /* First draw a shape in black on the original destination. */
+    /* First draw a shape in blue on the original destination. */
     cairo_set_source_rgb (cr, 0, 0, 1); /* blue */
     draw_square (cr);
 
-    cairo_surface_write_to_png (cairo_get_target (cr), "/tmp/a.png");
-
     /* Then, create an offset surface and repeat the drawing in red. */
     target = cairo_get_target (cr);
     surface = cairo_surface_create_similar (target,
@@ -68,8 +66,6 @@ draw (cairo_t *cr, int width, int height
     cairo_set_source_rgb (cr2, 1, 0, 0); /* red */
     draw_square (cr2);
 
-    cairo_surface_write_to_png (surface, "/tmp/b.png");
-
     cairo_destroy (cr2);
 
     /* Finally, copy the offset surface to the original destination.
@@ -79,8 +75,6 @@ draw (cairo_t *cr, int width, int height
 
     cairo_paint (cr);
 
-    cairo_surface_write_to_png (cairo_get_target (cr), "/tmp/c.png");
-
     cairo_surface_destroy (surface);
 
     return CAIRO_TEST_SUCCESS;


More information about the cairo-commit mailing list