summaryrefslogtreecommitdiff
path: root/src/sna/sna_glyphs.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-06-20 16:13:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-06-20 16:23:18 +0100
commit91bc9e42e434abd56ce2e4fc5e08d07376fe8bd3 (patch)
treefc799299c447596af7127867fb35cf67b5985fab /src/sna/sna_glyphs.c
parente5c68b4358ce541929681c8c1e0ad3ef8c1dc9ed (diff)
sna: Mark up const boxes to keep the compiler happy
Pass around const to suppress a few compiler warnings. 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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c
index e3e865be..fb4d7f1d 100644
--- a/src/sna/sna_glyphs.c
+++ b/src/sna/sna_glyphs.c
@@ -580,7 +580,7 @@ glyphs_to_dst(struct sna *sna,
struct sna_composite_op tmp;
ScreenPtr screen = dst->pDrawable->pScreen;
PicturePtr glyph_atlas;
- BoxPtr rects;
+ const BoxRec *rects;
int nrect;
int16_t x, y;
@@ -737,7 +737,7 @@ glyphs0_to_dst(struct sna *sna,
struct sna_composite_op tmp;
ScreenPtr screen = dst->pDrawable->pScreen;
PicturePtr glyph_atlas = NO_ATLAS;
- BoxPtr rects;
+ const BoxRec *rects;
int nrect;
int x, y;
@@ -944,7 +944,7 @@ glyphs_slow(struct sna *sna,
while (n--) {
GlyphPtr glyph = *glyphs++;
struct sna_glyph *p;
- BoxPtr rects;
+ const BoxRec *rects;
BoxRec box;
int nrect;