summaryrefslogtreecommitdiff
path: root/miext/shadow
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:01 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:01 +0000
commitadc7f9a4ebdfe11d4cd6de9388b63dfe36450b39 (patch)
tree23eb7becc5360b2cbe16aa8d45529880067f3989 /miext/shadow
parent90f1536dd315cd265bfc7ef35058761a65a01734 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
Diffstat (limited to 'miext/shadow')
-rw-r--r--miext/shadow/shadow.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/miext/shadow/shadow.c b/miext/shadow/shadow.c
index 60a1555d8..38a92953f 100644
--- a/miext/shadow/shadow.c
+++ b/miext/shadow/shadow.c
@@ -1,5 +1,5 @@
/*
- * $XFree86: xc/programs/Xserver/miext/shadow/shadow.c,v 1.13 2002/12/02 20:37:23 tsi Exp $
+ * $XFree86: xc/programs/Xserver/miext/shadow/shadow.c,v 1.15 2003/11/10 18:22:51 tsi Exp $
*
* Copyright © 2000 Keith Packard
*
@@ -413,7 +413,7 @@ shadowFillSpans(
while(--i) {
ppt++;
- pwidthInit++;
+ pwidth++;
if(box.x1 > ppt->x) box.x1 = ppt->x;
if(box.x2 < (ppt->x + *pwidth))
box.x2 = ppt->x + *pwidth;
@@ -425,7 +425,11 @@ shadowFillSpans(
(*pGC->ops->FillSpans)(pDraw, pGC, nInit, pptInit, pwidthInit, fSorted);
- TRIM_AND_TRANSLATE_BOX(box, pDraw, pGC);
+ if(!pGC->miTranslate) {
+ TRANSLATE_BOX(box, pDraw);
+ }
+ TRIM_BOX(box, pGC);
+
if(BOX_NOT_EMPTY(box))
shadowDamageBox ((WindowPtr) pDraw, &box);
} else
@@ -471,7 +475,11 @@ shadowSetSpans(
(*pGC->ops->SetSpans)(pDraw, pGC, pcharsrc, pptInit,
pwidthInit, nspans, fSorted);
- TRIM_AND_TRANSLATE_BOX(box, pDraw, pGC);
+ if(!pGC->miTranslate) {
+ TRANSLATE_BOX(box, pDraw);
+ }
+ TRIM_BOX(box, pGC);
+
if(BOX_NOT_EMPTY(box))
shadowDamageBox ((WindowPtr) pDraw, &box);
} else
@@ -1254,9 +1262,15 @@ shadowPushPixels(
if(IS_VISIBLE(pDraw)) {
BoxRec box;
- box.x1 = xOrg + pDraw->x;
+ box.x1 = xOrg;
+ box.y1 = yOrg;
+
+ if(!pGC->miTranslate) {
+ box.x1 += pDraw->x;
+ box.y1 += pDraw->y;
+ }
+
box.x2 = box.x1 + dx;
- box.y1 = yOrg + pDraw->y;
box.y2 = box.y1 + dy;
TRIM_BOX(box, pGC);
@@ -1459,7 +1473,7 @@ shadowAdd (ScreenPtr pScreen,
pBuf->pPixmap = pPixmap;
pBuf->update = update;
pBuf->window = window;
- REGION_INIT (pScreen, &pBuf->damage, NullBox, 0);
+ REGION_NULL(pScreen, &pBuf->damage);
pBuf->pNext = pScrPriv->pBuf;
pBuf->randr = randr;
pBuf->closure = 0;