Add missing offsets for window coordinates - reported by Colin Harrison

This commit is contained in:
Soren Sandmann Pedersen 2007-05-23 12:56:04 -04:00
parent cc648e609d
commit 3ba3ede9bb

View File

@ -384,6 +384,19 @@ fbComposite (CARD8 op,
pixman_region16_t region;
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 (&region, pSrc, pMask, pDst, xSrc, ySrc,
xMask, yMask, xDst, yDst, width, height))
return;