From 4e41905bacbf533740e999ba79e0620f358c0597 Mon Sep 17 00:00:00 2001 From: Søren Sandmann Pedersen Date: Wed, 8 Jul 2009 00:08:49 -0400 Subject: Eliminate empty rectangles in pixman_region_init_rects(). Otherwise they show up in the validated regions. --- test/region-test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/region-test.c b/test/region-test.c index 3e00dec7..26e5338d 100644 --- a/test/region-test.c +++ b/test/region-test.c @@ -34,10 +34,15 @@ main () pixman_region32_init_rects (&r1, boxes, 2); b = pixman_region32_rectangles (&r1, &i); + + assert (i == 1); + while (--i) { assert (b[i].x1 < b[i].x2); assert (b[i].y1 < b[i].y2); } + + return 0; } -- cgit v1.2.3