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_mono.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_mono.c')
-rw-r--r-- | src/sna/sna_trapezoids_mono.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sna/sna_trapezoids_mono.c b/src/sna/sna_trapezoids_mono.c index fe77ffdc..acd2b101 100644 --- a/src/sna/sna_trapezoids_mono.c +++ b/src/sna/sna_trapezoids_mono.c @@ -119,9 +119,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)); @@ -444,10 +444,10 @@ mono_span(struct mono *c, int x1, int x2, BoxPtr box) pixman_region_init_rects(®ion, box, 1); RegionIntersect(®ion, ®ion, &c->clip); - if (REGION_NUM_RECTS(®ion)) { + if (region_num_rects(®ion)) { c->op.boxes(c->sna, &c->op, - REGION_RECTS(®ion), - REGION_NUM_RECTS(®ion)); + region_rects(®ion), + region_num_rects(®ion)); apply_damage(&c->op, ®ion); } pixman_region_fini(®ion); @@ -505,10 +505,10 @@ thread_mono_span_clipped(struct mono *c, int x1, int x2, BoxPtr box) pixman_region_init_rects(®ion, box, 1); RegionIntersect(®ion, ®ion, &c->clip); - if (REGION_NUM_RECTS(®ion)) + if (region_num_rects(®ion)) thread_mono_span_add_boxes(c, - REGION_RECTS(®ion), - REGION_NUM_RECTS(®ion)); + region_rects(®ion), + region_num_rects(®ion)); pixman_region_fini(®ion); } |