From: Andrea Canciani Date: Thu, 3 Nov 2011 10:07:25 +0000 (+0100) Subject: demos: Consistently use G_N_ELEMENTS() X-Git-Tag: pixman-0.25.2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b31da39f6f65d1784fc2f6915c30eb011cc2893b;p=platform%2Fupstream%2Fpixman.git demos: Consistently use G_N_ELEMENTS() Instead of open-coding G_N_ELEMENTS(), just use it. --- diff --git a/demos/composite-test.c b/demos/composite-test.c index f5f352f..bba90c5 100644 --- a/demos/composite-test.c +++ b/demos/composite-test.c @@ -123,7 +123,7 @@ main (int argc, char **argv) table = gtk_table_new (G_N_ELEMENTS (operators) / 6, 6, TRUE); src_img = pixman_image_create_linear_gradient (&p1, &p2, stops, - sizeof (stops) / sizeof (stops[0])); + G_N_ELEMENTS (stops)); pixman_image_set_repeat (src_img, PIXMAN_REPEAT_PAD);