summaryrefslogtreecommitdiff
path: root/src/sna/sna_glyphs.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_glyphs.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_glyphs.c')
-rw-r--r--src/sna/sna_glyphs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c
index 58180864..93aac341 100644
--- a/src/sna/sna_glyphs.c
+++ b/src/sna/sna_glyphs.c
@@ -580,8 +580,8 @@ glyphs_to_dst(struct sna *sna,
list->xOff, list->yOff, dst->pDrawable->x, dst->pDrawable->y));
if (clipped_glyphs(dst, nlist, list, glyphs)) {
- rects = REGION_RECTS(dst->pCompositeClip);
- nrect = REGION_NUM_RECTS(dst->pCompositeClip);
+ rects = region_rects(dst->pCompositeClip);
+ nrect = region_num_rects(dst->pCompositeClip);
} else
nrect = 0;
@@ -742,8 +742,8 @@ glyphs0_to_dst(struct sna *sna,
src_y -= list->yOff + y;
if (clipped_glyphs(dst, nlist, list, glyphs)) {
- rects = REGION_RECTS(dst->pCompositeClip);
- nrect = REGION_NUM_RECTS(dst->pCompositeClip);
+ rects = region_rects(dst->pCompositeClip);
+ nrect = region_num_rects(dst->pCompositeClip);
if (nrect == 0)
return true;
@@ -974,8 +974,8 @@ glyphs_slow(struct sna *sna,
COMPOSITE_PARTIAL, memset(&tmp, 0, sizeof(tmp))))
return false;
- rects = REGION_RECTS(dst->pCompositeClip);
- nrect = REGION_NUM_RECTS(dst->pCompositeClip);
+ rects = region_rects(dst->pCompositeClip);
+ nrect = region_num_rects(dst->pCompositeClip);
do {
struct sna_composite_rectangles r;
int16_t x2, y2;