diff options
author | Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com> | 2007-05-23 12:56:04 -0400 |
---|---|---|
committer | Soren Sandmann Pedersen <ssp@dhcp83-218.boston.redhat.com> | 2007-05-23 12:56:04 -0400 |
commit | 3ba3ede9bbdfc6376b6f6e0b6ce8280a05e6584d (patch) | |
tree | 95c54f668838de64b72fd52bb223bca9ef468d82 /fb | |
parent | cc648e609d472472bac4a2e568eb3598b3690ba3 (diff) |
Add missing offsets for window coordinates - reported by Colin Harrison
Diffstat (limited to 'fb')
-rw-r--r-- | fb/fbpict.c | 13 |
1 files changed, 13 insertions, 0 deletions
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; |