summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-02 12:03:21 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-02 12:26:07 +0100
commit4d227d43f0dfca1fa1822207d68539635aac37b3 (patch)
tree9422e0cd009ba71be6ee5681b1a6839ab1b86418
parent3dd80524160d6b6cf0fb668afcc766f2bc6f8383 (diff)
sna/accel: Correct syntax for constifying BoxPtr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 524f76dd..1b43a8b6 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -559,7 +559,7 @@ done:
}
static inline Bool
-_sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxPtr box)
+_sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxRec *box)
{
PixmapPtr pixmap = get_drawable_pixmap(drawable);
struct sna_pixmap *priv = sna_pixmap(pixmap);
@@ -588,7 +588,7 @@ _sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxPtr box)
}
static inline Bool
-sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxPtr box)
+sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxRec *box)
{
Bool ret = _sna_drawable_use_gpu_bo(drawable, box);
DBG(("%s((%d, %d), (%d, %d)) = %d\n", __FUNCTION__,
@@ -597,7 +597,7 @@ sna_drawable_use_gpu_bo(DrawablePtr drawable, const BoxPtr box)
}
static inline Bool
-_sna_drawable_use_cpu_bo(DrawablePtr drawable, const BoxPtr box)
+_sna_drawable_use_cpu_bo(DrawablePtr drawable, const BoxRec *box)
{
PixmapPtr pixmap = get_drawable_pixmap(drawable);
struct sna_pixmap *priv = sna_pixmap(pixmap);
@@ -625,7 +625,7 @@ _sna_drawable_use_cpu_bo(DrawablePtr drawable, const BoxPtr box)
}
static inline Bool
-sna_drawable_use_cpu_bo(DrawablePtr drawable, const BoxPtr box)
+sna_drawable_use_cpu_bo(DrawablePtr drawable, const BoxRec *box)
{
Bool ret = _sna_drawable_use_cpu_bo(drawable, box);
DBG(("%s((%d, %d), (%d, %d)) = %d\n", __FUNCTION__,
@@ -1462,7 +1462,7 @@ sna_copy_area(DrawablePtr src, DrawablePtr dst, GCPtr gc,
}
static Bool
-box_intersect(BoxPtr a, const BoxPtr b)
+box_intersect(BoxPtr a, const BoxRec *b)
{
if (a->x1 < b->x1)
a->x1 = b->x1;
@@ -2747,7 +2747,7 @@ sna_poly_fill_rect_tiled(DrawablePtr drawable,
}
if (REGION_NUM_RECTS(clip) == 1) {
- const BoxPtr box = REGION_RECTS(clip);
+ const BoxRec *box = REGION_RECTS(clip);
while (n--) {
BoxRec r;