summaryrefslogtreecommitdiff
path: root/src/sna/gen3_render.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/gen3_render.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/gen3_render.c')
-rw-r--r--src/sna/gen3_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/gen3_render.c b/src/sna/gen3_render.c
index c9e69c38..a1b37b60 100644
--- a/src/sna/gen3_render.c
+++ b/src/sna/gen3_render.c
@@ -5382,7 +5382,7 @@ gen3_render_video(struct sna *sna,
PixmapPtr pixmap)
{
struct sna_pixmap *priv = sna_pixmap(pixmap);
- BoxPtr pbox = region_rects(dstRegion);
+ const BoxRec *pbox = region_rects(dstRegion);
int nbox = region_num_rects(dstRegion);
int dst_width = dstRegion->extents.x2 - dstRegion->extents.x1;
int dst_height = dstRegion->extents.y2 - dstRegion->extents.y1;