summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2003-11-10 06:40:23 +0000
committerKeith Packard <keithp@keithp.com>2003-11-10 06:40:23 +0000
commite500986657ea8b4e14a1ff4730ecda4583c75277 (patch)
tree5288c7e81728e10eed47f9e1d9c473b50b1cf89c
parentd694b44259ff51cfca2c3ec9a58bf164010cc1ad (diff)
Must offset composite parameters by drawable coordinates in accelerated
case.
-rw-r--r--hw/kdrive/src/kaa.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/hw/kdrive/src/kaa.c b/hw/kdrive/src/kaa.c
index 002943c6e..bf301bb99 100644
--- a/hw/kdrive/src/kaa.c
+++ b/hw/kdrive/src/kaa.c
@@ -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))