diff options
author | Andrea Canciani <ranma42@gmail.com> | 2011-03-16 16:55:50 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2011-03-17 17:45:57 +0100 |
commit | 0ce4face45392cd4a44179062fb4a5715f18bb85 (patch) | |
tree | 1d01d8ab7adcf5d8e9609419d7facc4cdc32c76b /test/reflected-stroke.c | |
parent | 75fea162d985bea622afa59771fb2d07f5241d1b (diff) | |
download | cairo-0ce4face45392cd4a44179062fb4a5715f18bb85.tar.gz |
test: Use ARRAY_LENGTH() macro
Some tests hand-code ARRAY_LENGTH(). It is now provided by
cairo-test.h, so it can be reused.
Diffstat (limited to 'test/reflected-stroke.c')
-rw-r--r-- | test/reflected-stroke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/reflected-stroke.c b/test/reflected-stroke.c index 0981f7525..b11f5a9b3 100644 --- a/test/reflected-stroke.c +++ b/test/reflected-stroke.c @@ -40,7 +40,7 @@ draw_symbol (cairo_t *cr) cairo_stroke (cr); cairo_save (cr); - cairo_set_dash (cr, dash, sizeof (dash) / sizeof (dash[0]), 0.); + cairo_set_dash (cr, dash, ARRAY_LENGTH (dash), 0.); cairo_move_to (cr, 0, 0); cairo_arc (cr, 0, 0, 12.5, 0, 3 * M_PI / 2); cairo_close_path (cr); |