summaryrefslogtreecommitdiff
path: root/test/long-dashed-lines.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-03-16 16:55:50 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-03-17 17:45:57 +0100
commit0ce4face45392cd4a44179062fb4a5715f18bb85 (patch)
tree1d01d8ab7adcf5d8e9609419d7facc4cdc32c76b /test/long-dashed-lines.c
parent75fea162d985bea622afa59771fb2d07f5241d1b (diff)
downloadcairo-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/long-dashed-lines.c')
-rw-r--r--test/long-dashed-lines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/long-dashed-lines.c b/test/long-dashed-lines.c
index cd940fbdf..215bd912c 100644
--- a/test/long-dashed-lines.c
+++ b/test/long-dashed-lines.c
@@ -49,7 +49,7 @@ draw (cairo_t *cr, int width, int height)
/* completely invisible rectangle */
cairo_rectangle (cr, -5, -5, 70, 70);
- cairo_set_dash (cr, dashes, sizeof (dashes) / sizeof (dashes[0]), 0.);
+ cairo_set_dash (cr, dashes, ARRAY_LENGTH (dashes), 0.);
cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
cairo_set_line_join (cr, CAIRO_LINE_JOIN_BEVEL);
cairo_set_source_rgb (cr, 0, 0, 0);