mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-03 13:40:31 +01:00
Remove debugging "prints" of images from test/device-offset.c
This commit is contained in:
parent
32c0e85d45
commit
53bf2f8d5d
1 changed files with 1 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue