summaryrefslogtreecommitdiff
path: root/miext/damage/damage.c
diff options
context:
space:
mode:
Diffstat (limited to 'miext/damage/damage.c')
-rwxr-xr-xmiext/damage/damage.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index a1ac01a50..5db85f97b 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -199,9 +199,7 @@ damageDamageRegion (DrawablePtr pDrawable, RegionPtr pRegion, Bool clip,
#endif
continue;
}
-
- draw_x = pDamage->pDrawable->x;
- draw_y = pDamage->pDrawable->y;
+
#ifdef COMPOSITE
/*
* Need to move everyone to screen coordinates
@@ -209,10 +207,15 @@ damageDamageRegion (DrawablePtr pDrawable, RegionPtr pRegion, Bool clip,
*/
if (pDamage->pDrawable->type != DRAWABLE_WINDOW)
{
- draw_x += ((PixmapPtr) pDamage->pDrawable)->screen_x;
- draw_y += ((PixmapPtr) pDamage->pDrawable)->screen_y;
+ draw_x = ((PixmapPtr) pDamage->pDrawable)->screen_x;
+ draw_y = ((PixmapPtr) pDamage->pDrawable)->screen_y;
}
+ else
#endif
+ {
+ draw_x = pDamage->pDrawable->x;
+ draw_y = pDamage->pDrawable->y;
+ }
/*
* Clip against border or pixmap bounds