diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2009-09-11 04:03:06 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-09-14 16:09:37 +1000 |
commit | f450be999268d118b384c04ea070c87ad48c4c59 (patch) | |
tree | 9957eee20dcb2ced483ca5c7e4d8801c93e1fb76 /fb | |
parent | 2b00afec4b5b51851aee4cb0fba7baff3e10ef3f (diff) |
Add xoff and yoff to drawable->x and drawable->y in create_bits_picture().
These are 0, except when the drawable is a redirected window.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbpict.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fb/fbpict.c b/fb/fbpict.c index dd9cefe15..2fbef15c3 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -336,7 +336,9 @@ create_bits_picture (PicturePtr pict, fbGetDrawable (drawable, bits, stride, bpp, xoff, yoff); - bits = (FbBits*)((CARD8*)bits + drawable->y * stride * sizeof(FbBits) + drawable->x * (bpp / 8)); + bits = (FbBits*)((CARD8*)bits + + (drawable->y + yoff) * stride * sizeof(FbBits) + + (drawable->x + xoff) * (bpp / 8)); image = pixman_image_create_bits ( pict->format, drawable->width, drawable->height, |