mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 16:20:03 +01:00
Add missing offsets for window coordinates - reported by Colin Harrison
This commit is contained in:
parent
cc648e609d
commit
3ba3ede9bb
1 changed files with 13 additions and 0 deletions
13
fb/fbpict.c
13
fb/fbpict.c
|
|
@ -384,6 +384,19 @@ fbComposite (CARD8 op,
|
||||||
pixman_region16_t region;
|
pixman_region16_t region;
|
||||||
pixman_image_t *src, *mask, *dest;
|
pixman_image_t *src, *mask, *dest;
|
||||||
|
|
||||||
|
xDst += pDst->pDrawable->x;
|
||||||
|
yDst += pDst->pDrawable->y;
|
||||||
|
if (pSrc->pDrawable)
|
||||||
|
{
|
||||||
|
xSrc += pSrc->pDrawable->x;
|
||||||
|
ySrc += pSrc->pDrawable->y;
|
||||||
|
}
|
||||||
|
if (pMask && pMask->pDrawable)
|
||||||
|
{
|
||||||
|
xMask += pMask->pDrawable->x;
|
||||||
|
yMask += pMask->pDrawable->y;
|
||||||
|
}
|
||||||
|
|
||||||
if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst, xSrc, ySrc,
|
if (!miComputeCompositeRegion (®ion, pSrc, pMask, pDst, xSrc, ySrc,
|
||||||
xMask, yMask, xDst, yDst, width, height))
|
xMask, yMask, xDst, yDst, width, height))
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue