[check] Filter programlistings for check-doc-syntax.sh
[cairo/haiku.git] / test / extend-repeat.c
blob351b63b866e6bc6d78b0cb0413caa4b6abb442f8
1 #include "cairo-test.h"
3 const char png_filename[] = "romedalen.png";
5 static cairo_test_draw_function_t draw;
7 cairo_test_t test = {
8 "extend-repeat",
9 "Test CAIRO_EXTEND_REPEAT for surface patterns",
10 256 + 32*2, 192 + 32*2,
11 draw
14 static cairo_test_status_t
15 draw (cairo_t *cr, int width, int height)
17 cairo_surface_t *surface;
19 surface = cairo_test_create_surface_from_png (png_filename);
20 cairo_set_source_surface (cr, surface, 32, 32);
21 cairo_pattern_set_extend (cairo_get_source (cr), CAIRO_EXTEND_REPEAT);
23 cairo_paint (cr);
25 cairo_surface_destroy (surface);
27 return CAIRO_TEST_SUCCESS;
30 int
31 main (void)
33 return cairo_test (&test);