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.
This commit is contained in:
Michel Dänzer 2007-08-29 19:41:52 +02:00
parent 5c7ee3f47f
commit f27931bdd2
2 changed files with 9 additions and 0 deletions

View File

@ -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)

View File

@ -75,6 +75,9 @@ DamageEmpty (DamagePtr pDamage);
RegionPtr
DamageRegion (DamagePtr pDamage);
RegionPtr
DamagePendingRegion (DamagePtr pDamage);
void
DamageDamageRegion (DrawablePtr pDrawable,
const RegionPtr pRegion);