diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-19 15:22:08 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-07-19 15:22:08 +0100 |
commit | e386ba86ea487a2db62d80a0e60f176e052d6406 (patch) | |
tree | 06115194109d73c00e6dd846f84925b7bbba6621 /src | |
parent | de472d95affcad0f87685782d29a41fa2a0cada6 (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.c | 2 |
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(®ion))); - if (RegionNotEmpty(®ion)) + if (!box_empty(®ion.extents)) copy(src, dst, gc, ®ion, sx-dx, sy-dy, bitPlane, closure); RegionUninit(®ion); |