| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #include "cairo-test.h" |
| |
| static cairo_test_status_t |
| draw (cairo_t *cr, int width, int height) |
| { |
| cairo_set_source_rgb (cr, 0, 0, 1); |
| cairo_paint (cr); |
| |
| cairo_translate (cr, 2, 2); |
| cairo_scale (cr, 0.5, 0.5); |
| |
| cairo_set_source_rgb (cr, 1, 0, 0); |
| cairo_paint (cr); |
| |
| return CAIRO_TEST_SUCCESS; |
| } |
| |
| CAIRO_TEST (paint, |
| "Test calls to cairo_paint", |
| "paint", |
| NULL, |
| 8, 8, |
| NULL, draw) |