summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids_mono.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-11 09:29:50 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-11 11:02:05 +0100
commiteb9de37daaea45e917fa7f44444a9782070f7333 (patch)
treed666cec70761715feff03a5908ff2fdf7fbe1325 /src/sna/sna_trapezoids_mono.c
parent085141348cfe8386059062a58172855f72d5e5b6 (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.c16
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(&region, box, 1);
RegionIntersect(&region, &region, &c->clip);
- if (REGION_NUM_RECTS(&region)) {
+ if (region_num_rects(&region)) {
c->op.boxes(c->sna, &c->op,
- REGION_RECTS(&region),
- REGION_NUM_RECTS(&region));
+ region_rects(&region),
+ region_num_rects(&region));
apply_damage(&c->op, &region);
}
pixman_region_fini(&region);
@@ -505,10 +505,10 @@ thread_mono_span_clipped(struct mono *c, int x1, int x2, BoxPtr box)
pixman_region_init_rects(&region, box, 1);
RegionIntersect(&region, &region, &c->clip);
- if (REGION_NUM_RECTS(&region))
+ if (region_num_rects(&region))
thread_mono_span_add_boxes(c,
- REGION_RECTS(&region),
- REGION_NUM_RECTS(&region));
+ region_rects(&region),
+ region_num_rects(&region));
pixman_region_fini(&region);
}