stride is in FbBits-sized chunks, but xoff is not.
Fixes corruption problems with composite rendering to redirected windows in depth 16.
This commit is contained in:
@@ -292,7 +292,7 @@ create_bits_picture (PicturePtr pict,
|
|||||||
|
|
||||||
fbGetDrawable (pict->pDrawable, bits, stride, bpp, xoff, yoff);
|
fbGetDrawable (pict->pDrawable, bits, stride, bpp, xoff, yoff);
|
||||||
|
|
||||||
bits += yoff * stride + xoff;
|
bits = (CARD8*)bits + yoff * stride * sizeof(FbBits) + xoff * (bpp / 8);
|
||||||
|
|
||||||
image = pixman_image_create_bits (
|
image = pixman_image_create_bits (
|
||||||
pict->format,
|
pict->format,
|
||||||
|
|||||||
Reference in New Issue
Block a user