summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-08-29 19:41:52 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-09-07 18:41:30 +0200
commitf27931bdd26fc9a1e6bb5173b5537e32c51a98b3 (patch)
treeb6fe109e646ecae5c7abdd1dd50df48f95fbc707 /miext
parent5c7ee3f47fa0c067102a17dee3f75a51cc0bdb3a (diff)
Add DamagePendingRegion.
DamagePendingRegion returns a pointer to the region of a drawable that will be damaged by the current operation for damage records that chose to get damage reported only at the end of the operation.
Diffstat (limited to 'miext')
-rwxr-xr-xmiext/damage/damage.c6
-rwxr-xr-xmiext/damage/damage.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index 65314d8a9..472b1b887 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -1987,6 +1987,12 @@ DamageRegion (DamagePtr pDamage)
return &pDamage->damage;
}
+_X_EXPORT RegionPtr
+DamagePendingRegion (DamagePtr pDamage)
+{
+ return &pDamage->pendingDamage;
+}
+
_X_EXPORT void
DamageDamageRegion (DrawablePtr pDrawable,
RegionPtr pRegion)
diff --git a/miext/damage/damage.h b/miext/damage/damage.h
index 4cfc8127d..102da6ebe 100755
--- a/miext/damage/damage.h
+++ b/miext/damage/damage.h
@@ -75,6 +75,9 @@ DamageEmpty (DamagePtr pDamage);
RegionPtr
DamageRegion (DamagePtr pDamage);
+RegionPtr
+DamagePendingRegion (DamagePtr pDamage);
+
void
DamageDamageRegion (DrawablePtr pDrawable,
const RegionPtr pRegion);