From dbb53d0ffe03726608849473aacf863227843b3e Mon Sep 17 00:00:00 2001
From: Mike Lothian <mike@fireburn.co.uk>
Date: Sat, 11 Oct 2014 15:12:53 +0100
Subject: [PATCH] sna: miHandleExposures no longer requires plane argument
This is required since xorg-server commit
mi: Drop plane argument from miHandleExposures
5d3bd8a3dc6456ea1ccf7b5f71b972379d7565ec
---
src/sna/fb/fbcopy.c | 5 +++++
src/sna/sna_accel.c | 14 ++++++++++++++
2 files changed, 19 insertions(+)
@@ -219,7 +219,12 @@ fbCopyPlane(DrawablePtr src, DrawablePtr dst, GCPtr gc,
return miDoCopy(src, dst, gc, sx, sy, width, height, dx, dy,
fbCopy1toN, (Pixel) bitplane, 0);
else
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+ return miHandleExposures(src, dst, gc,
+ sx, sy, width, height, dx, dy);
+#else
return miHandleExposures(src, dst, gc,
sx, sy, width, height, dx, dy,
bitplane);
+#endif
}
@@ -7003,11 +7003,18 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
/* Pixmap sources generate a NoExposed (we return NULL to do this) */
clip = NULL;
if (expose && gc->fExpose)
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+ clip = miHandleExposures(src, dst, gc,
+ sx - src->x, sy - src->y,
+ width, height,
+ dx - dst->x, dy - dst->y);
+#else
clip = miHandleExposures(src, dst, gc,
sx - src->x, sy - src->y,
width, height,
dx - dst->x, dy - dst->y,
(unsigned long) bitPlane);
+#endif
return clip;
}
@@ -8713,10 +8720,17 @@ out:
RegionUninit(®ion);
return ret;
empty:
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,16,99,1,0)
+ return miHandleExposures(src, dst, gc,
+ src_x, src_y,
+ w, h,
+ dst_x, dst_y);
+#else
return miHandleExposures(src, dst, gc,
src_x, src_y,
w, h,
dst_x, dst_y, bit);
+#endif
}
static bool
--
2.1.2