From 3ba3ede9bbdfc6376b6f6e0b6ce8280a05e6584d Mon Sep 17 00:00:00 2001 From: Soren Sandmann Pedersen Date: Wed, 23 May 2007 12:56:04 -0400 Subject: [PATCH] Add missing offsets for window coordinates - reported by Colin Harrison --- fb/fbpict.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/fb/fbpict.c b/fb/fbpict.c index eb78ceda6..3ad4a2240 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -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 (®ion, pSrc, pMask, pDst, xSrc, ySrc, xMask, yMask, xDst, yDst, width, height)) return;