summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-25 20:12:55 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-26 12:48:07 +0000
commit4a132ddbf06e5ffc364c25002a1e46ad8bf0e45a (patch)
tree70a10b0ac5aa323a2aa73b9a676c5bda894e309e
parent65164d90b7b17ec7eea1e24d4b02ec037b55b1ff (diff)
sna: Correct offset for moving drawable regions to the CPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h
index d8f96e06..bc149677 100644
--- a/src/sna/sna.h
+++ b/src/sna/sna.h
@@ -465,7 +465,8 @@ sna_drawable_move_to_cpu(DrawablePtr drawable, unsigned flags)
RegionRec region;
pixman_region_init_rect(&region,
- 0, 0, drawable->width, drawable->height);
+ drawable->x, drawable->y,
+ drawable->width, drawable->height);
return sna_drawable_move_region_to_cpu(drawable, &region, flags);
}