diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-11 09:29:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-06-11 11:02:05 +0100 |
commit | eb9de37daaea45e917fa7f44444a9782070f7333 (patch) | |
tree | d666cec70761715feff03a5908ff2fdf7fbe1325 /src/sna/sna_trapezoids_boxes.c | |
parent | 085141348cfe8386059062a58172855f72d5e5b6 (diff) |
sna: Silence compiler warnings for discarding const Region points
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids_boxes.c')
-rw-r--r-- | src/sna/sna_trapezoids_boxes.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/sna/sna_trapezoids_boxes.c b/src/sna/sna_trapezoids_boxes.c index 335b2ceb..e7d74f51 100644 --- a/src/sna/sna_trapezoids_boxes.c +++ b/src/sna/sna_trapezoids_boxes.c @@ -73,9 +73,9 @@ static void _assert_pixmap_contains_box(PixmapPtr pixmap, BoxPtr box, const char static void apply_damage(struct sna_composite_op *op, RegionPtr region) { - DBG(("%s: damage=%p, region=%ldx[(%d, %d), (%d, %d)]\n", + DBG(("%s: damage=%p, region=%dx[(%d, %d), (%d, %d)]\n", __FUNCTION__, op->damage, - (long)REGION_NUM_RECTS(region), + region_num_rects(region), region->extents.x1, region->extents.y1, region->extents.x2, region->extents.y2)); @@ -237,8 +237,8 @@ composite_aligned_boxes(struct sna *sna, RegionIntersect(®ion, ®ion, &clip); if (sigtrap_get() == 0) { - b = REGION_RECTS(®ion); - count = REGION_NUM_RECTS(®ion); + b = region_rects(®ion); + count = region_num_rects(®ion); for (i = 0; i < count; i++) { fbComposite(op, src, NULL, dst, src_x + b[i].x1 - boxes[0].x1, @@ -254,8 +254,8 @@ composite_aligned_boxes(struct sna *sna, for (n = 0; n < num_boxes; n++) { pixman_region_init_rects(®ion, &boxes[n], 1); RegionIntersect(®ion, ®ion, &clip); - b = REGION_RECTS(®ion); - count = REGION_NUM_RECTS(®ion); + b = region_rects(®ion); + count = region_num_rects(®ion); if (sigtrap_get() == 0) { for (i = 0; i < count; i++) { fbComposite(op, src, NULL, dst, @@ -280,10 +280,10 @@ composite_aligned_boxes(struct sna *sna, num_boxes == 1) { pixman_region_init_rects(®ion, boxes, num_boxes); RegionIntersect(®ion, ®ion, &clip); - if (REGION_NUM_RECTS(®ion)) { + if (region_num_rects(®ion)) { tmp.boxes(sna, &tmp, - REGION_RECTS(®ion), - REGION_NUM_RECTS(®ion)); + region_rects(®ion), + region_num_rects(®ion)); apply_damage(&tmp, ®ion); } pixman_region_fini(®ion); @@ -291,10 +291,10 @@ composite_aligned_boxes(struct sna *sna, for (n = 0; n < num_boxes; n++) { pixman_region_init_rects(®ion, &boxes[n], 1); RegionIntersect(®ion, ®ion, &clip); - if (REGION_NUM_RECTS(®ion)) { + if (region_num_rects(®ion)) { tmp.boxes(sna, &tmp, - REGION_RECTS(®ion), - REGION_NUM_RECTS(®ion)); + region_rects(®ion), + region_num_rects(®ion)); apply_damage(&tmp, ®ion); } pixman_region_fini(®ion); @@ -330,10 +330,10 @@ composite_unaligned_box(struct sna *sna, pixman_region_init_rects(®ion, box, 1); RegionIntersect(®ion, ®ion, clip); - if (REGION_NUM_RECTS(®ion)) + if (region_num_rects(®ion)) tmp->boxes(sna, tmp, - REGION_RECTS(®ion), - REGION_NUM_RECTS(®ion), + region_rects(®ion), + region_num_rects(®ion), opacity); pixman_region_fini(®ion); } else @@ -472,7 +472,7 @@ composite_unaligned_trap(struct sna *sna, pixman_region_init_rects(®ion, &box, 1); RegionIntersect(®ion, ®ion, clip); - if (REGION_NUM_RECTS(®ion)) + if (region_num_rects(®ion)) apply_damage(&tmp->base, ®ion); RegionUninit(®ion); } else @@ -797,8 +797,8 @@ composite_unaligned_boxes_inplace__solid(struct sna *sna, if (sigtrap_get() == 0) { RegionTranslate(&clip, dx, dy); - count = REGION_NUM_RECTS(&clip); - extents = REGION_RECTS(&clip); + count = region_num_rects(&clip); + extents = region_rects(&clip); while (count--) { int16_t y1 = dy + pixman_fixed_to_int(t->top); uint16_t fy1 = pixman_fixed_frac(t->top); @@ -887,8 +887,8 @@ pixman: pi.op = op; if (sigtrap_get() == 0) { - count = REGION_NUM_RECTS(&clip); - extents = REGION_RECTS(&clip); + count = region_num_rects(&clip); + extents = region_rects(&clip); while (count--) { int16_t y1 = pixman_fixed_to_int(t->top); uint16_t fy1 = pixman_fixed_frac(t->top); @@ -1128,8 +1128,8 @@ composite_unaligned_boxes_inplace(struct sna *sna, pi.op = op; if (sigtrap_get() == 0) { - count = REGION_NUM_RECTS(&clip); - extents = REGION_RECTS(&clip); + count = region_num_rects(&clip); + extents = region_rects(&clip); while (count--) { int16_t y1 = pixman_fixed_to_int(t->top); uint16_t fy1 = pixman_fixed_frac(t->top); |