mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 03:28:11 +02:00
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>
This commit is contained in:
parent
2b00afec4b
commit
f450be9992
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue