summaryrefslogtreecommitdiff
path: root/region-iter.c
diff options
context:
space:
mode:
Diffstat (limited to 'region-iter.c')
-rw-r--r--region-iter.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/region-iter.c b/region-iter.c
index b36ca1b..3d2a460 100644
--- a/region-iter.c
+++ b/region-iter.c
@@ -863,20 +863,6 @@ region_op (ops_t op,
return region_builder_finish (&builder, dst);
}
-static int
-compare_boxes (const void *box1v, const void *box2v)
-{
- const pixman_box32_t *box1 = box1v;
- const pixman_box32_t *box2 = box2v;
-
- if (box1->y1 == box2->y1)
- return 0;
- else if (box1->y1 < box2->y2)
- return -1;
- else
- return 1;
-}
-
static pixman_bool_t
make_region_from_sorted (pixman_region32_t *region,
const pixman_box32_t *boxes, int n_boxes)
@@ -914,6 +900,20 @@ make_region_from_sorted (pixman_region32_t *region,
return TRUE;
}
+static int
+compare_boxes (const void *box1v, const void *box2v)
+{
+ const pixman_box32_t *box1 = box1v;
+ const pixman_box32_t *box2 = box2v;
+
+ if (box1->y1 == box2->y1)
+ return 0;
+ else if (box1->y1 < box2->y2)
+ return -1;
+ else
+ return 1;
+}
+
pixman_bool_t
region_from_boxes (pixman_region32_t *region,
const pixman_box32_t *boxes, int n_boxes)