| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #include "cairo-test.h" |
| |
| |
| |
| |
| |
| |
| #define WIDTH 300 |
| #define HEIGHT 300 |
| |
| static cairo_test_status_t |
| draw (cairo_t *cr, int width, int height) |
| { |
| int x; |
| |
| |
| cairo_set_source_rgb (cr, 0, 0, 0); |
| cairo_paint (cr); |
| |
| |
| cairo_set_source_rgb (cr, 1, 1, 1); |
| |
| |
| |
| for (x = 0; x < WIDTH - 10; x += 15) |
| cairo_rectangle (cr, x, x, 10, HEIGHT - 2*x); |
| cairo_fill (cr); |
| |
| return CAIRO_TEST_SUCCESS; |
| } |
| |
| CAIRO_TEST (fill_disjoint, |
| "Tests filling unsorted rectangles.", |
| "fill", |
| NULL, |
| WIDTH, HEIGHT, |
| NULL, draw) |