2 #include "cairo-test.h"
5 static const char *png_filename
= "romedalen.png";
7 static cairo_test_status_t
8 draw (cairo_t
*cr
, int width
, int height
)
10 const cairo_test_context_t
*ctx
= cairo_test_get_context (cr
);
11 cairo_surface_t
*surface
;
13 surface
= cairo_test_create_surface_from_png (ctx
, png_filename
);
14 cairo_set_source_surface (cr
, surface
, 32, 32);
15 cairo_pattern_set_extend (cairo_get_source (cr
), CAIRO_EXTEND_REFLECT
);
19 cairo_surface_destroy (surface
);
21 return CAIRO_TEST_SUCCESS
;
24 CAIRO_TEST (extend_reflect
,
25 "Test CAIRO_EXTEND_REFLECT for surface patterns",
26 "extend", /* keywords */
27 NULL
, /* requirements */
28 256 + 32*2, 192 + 32*2,