diff options
author | Søren Sandmann <ssp@redhat.com> | 2014-05-29 13:45:34 -0400 |
---|---|---|
committer | Søren Sandmann <ssp@redhat.com> | 2014-05-29 13:45:34 -0400 |
commit | d35185030be5135e9be26ea5bd73d57efe34fc4a (patch) | |
tree | 0b15a048babc52d82c85516a9a7d69427884fa59 | |
parent | 3324036045c0ed092525aaf7eeb5fb2e6ac59579 (diff) |
Move function
-rw-r--r-- | region-iter.c | 28 |
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) |