summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-07-19 15:22:08 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-07-19 15:22:08 +0100
commite386ba86ea487a2db62d80a0e60f176e052d6406 (patch)
tree06115194109d73c00e6dd846f84925b7bbba6621 /src
parentde472d95affcad0f87685782d29a41fa2a0cada6 (diff)
sna: Perform an explicit check against the region extents
RegionNotEmpty() is only valid if we only use the Region API, and as we mix direct operations on the region extents, we need to also do our own final check. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 5f6d7df1..58595231 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -5582,7 +5582,7 @@ sna_do_copy(DrawablePtr src, DrawablePtr dst, GCPtr gc,
region.extents.x2, region.extents.y2,
(long)RegionNumRects(&region)));
- if (RegionNotEmpty(&region))
+ if (!box_empty(&region.extents))
copy(src, dst, gc, &region, sx-dx, sy-dy, bitPlane, closure);
RegionUninit(&region);