Must offset composite parameters by drawable coordinates in accelerated

case.
This commit is contained in:
Keith Packard 2003-11-10 06:40:23 +00:00
parent d694b44259
commit e500986657

View File

@ -967,6 +967,15 @@ kaaComposite(CARD8 op,
{
RegionRec region;
xDst += pDst->pDrawable->x;
yDst += pDst->pDrawable->y;
xSrc += pSrc->pDrawable->x;
ySrc += pSrc->pDrawable->y;
if (pMask)
{
xMask += pMask->pDrawable->x;
yMask += pMask->pDrawable->y;
}
if (!miComputeCompositeRegion (&region, pSrc, pMask, pDst,
xSrc, ySrc, xMask, yMask, xDst, yDst,
width, height))