From e386ba86ea487a2db62d80a0e60f176e052d6406 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 19 Jul 2013 15:22:08 +0100 Subject: 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 --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(®ion))); - if (RegionNotEmpty(®ion)) + if (!box_empty(®ion.extents)) copy(src, dst, gc, ®ion, sx-dx, sy-dy, bitPlane, closure); RegionUninit(®ion); -- cgit v1.2.3