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/mask-glyphs.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/mask-glyphs.c')
-rw-r--r-- | test/mask-glyphs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/mask-glyphs.c b/test/mask-glyphs.c index 0a912e178..9ac02722b 100644 --- a/test/mask-glyphs.c +++ b/test/mask-glyphs.c @@ -128,7 +128,7 @@ _render_image (cairo_t *cr, cairo_set_font_size (cr, 5); scaled_font = cairo_get_scaled_font (cr); - for (i = 0; i < sizeof (channel) / sizeof (channel[0]); i++) { + for (i = 0; i < ARRAY_LENGTH (channel); i++) { cairo_push_group_with_content (cr, CAIRO_CONTENT_ALPHA); for (n = 0; n < 256; n++) { cairo_status_t status; |