diff options
author | Carl Worth <cworth@cworth.org> | 2005-04-19 16:29:04 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-04-19 16:29:04 +0000 |
commit | 9c10b54e5e98a5c5beca48c51ea930c2072ff6bc (patch) | |
tree | c3962a126cadfdc201f1a0ce82183d8e2744bb38 /test/gradient-alpha.c | |
parent | 60ec322241ef01930ae63195651249a97ddbe6f7 (diff) |
Add new cairo_paint function.
Add new get_extents function to the surface backend interface.
Add function to query current clip_extents.
Implement the new get_extents function for each backend.
Save the clip extents from set_clip_region and implement _cairo_surface_get_clip_extents.
Abstract away the evil XGetGeometry roundtrip in _cairo_xlib_surface_get_size.
Rewrite a couple of tests to call cairo_paint.
Diffstat (limited to 'test/gradient-alpha.c')
-rw-r--r-- | test/gradient-alpha.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/gradient-alpha.c b/test/gradient-alpha.c index 869d23d96..c42131090 100644 --- a/test/gradient-alpha.c +++ b/test/gradient-alpha.c @@ -47,8 +47,7 @@ draw (cairo_t *cr, int width, int height) cairo_set_pattern (cr, gradient); - cairo_rectangle (cr, 0, 0, width, height); - cairo_fill (cr); + cairo_paint (cr); cairo_pattern_destroy (gradient); |