diff options
author | Carl Worth <cworth@cworth.org> | 2006-02-13 16:47:13 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-02-13 16:47:13 -0800 |
commit | 5de154bcdb659618d723bcec14e0315630c62c7e (patch) | |
tree | 462e5c5d5a444c9388da1d33de1399e2fa98c9ed /test/clip-twice.c | |
parent | 6c38e238e5daab5df4c11027d28e48e62bbd4bc8 (diff) | |
parent | f030aec810d74a60a44c35bf7815b9e94743cd65 (diff) |
Remove pixman from SNAPSHOT_0_5_0SNAPSHOT_0_5_0
Diffstat (limited to 'test/clip-twice.c')
-rw-r--r-- | test/clip-twice.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/clip-twice.c b/test/clip-twice.c index 00215e62c..eebfec944 100644 --- a/test/clip-twice.c +++ b/test/clip-twice.c @@ -23,21 +23,20 @@ * Author: Kristian Høgsberg <krh@redhat.com> */ -#include "cairo_test.h" +#include "cairo-test.h" #define WIDTH 64 #define HEIGHT 64 cairo_test_t test = { - "clip_twice", + "clip-twice", "Verifies that the clip mask is updated correctly when it constructed by setting the clip path twice.", WIDTH, HEIGHT }; -static void +static cairo_test_status_t draw (cairo_t *cr, int width, int height) { - cairo_set_alpha (cr, 1.0); cairo_new_path (cr); cairo_arc (cr, WIDTH / 2, HEIGHT / 2, WIDTH / 3, 0, 2 * M_PI); cairo_clip (cr); @@ -52,7 +51,7 @@ draw (cairo_t *cr, int width, int height) cairo_close_path (cr); cairo_clip (cr); - cairo_set_rgb_color (cr, 0, 0, 0.6); + cairo_set_source_rgb (cr, 0, 0, 0.6); cairo_new_path (cr); cairo_move_to (cr, 0, 0); @@ -63,6 +62,8 @@ draw (cairo_t *cr, int width, int height) cairo_line_to (cr, WIDTH / 2, HEIGHT / 4); cairo_close_path (cr); cairo_fill (cr); + + return CAIRO_TEST_SUCCESS; } int |