diff options
author | Tomas Carnecky <tom@dbservice.com> | 2008-08-28 18:05:40 -0400 |
---|---|---|
committer | Eamon Walsh <ewalsh@tycho.nsa.gov> | 2008-08-28 18:05:40 -0400 |
commit | ebea78cdba0ff14a397239ee1936bd254c181e1b (patch) | |
tree | 3937720753cc112aaf9eb71ba0dcb39674362b98 /miext/damage | |
parent | ec7907f8fa04dcff2649cc4846975844314f737e (diff) |
Prepare for array-index based devPrivates.
TODO: static indices can be made just an int; some indices
can be combined.
Diffstat (limited to 'miext/damage')
-rwxr-xr-x | miext/damage/damage.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c index 56864c56d..5000a824f 100755 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -70,10 +70,14 @@ #define pixmapDamage(pPixmap) damagePixPriv(pPixmap) -static DevPrivateKey damageScrPrivateKey = &damageScrPrivateKey; -static DevPrivateKey damagePixPrivateKey = &damagePixPrivateKey; -static DevPrivateKey damageGCPrivateKey = &damageGCPrivateKey; -static DevPrivateKey damageWinPrivateKey = &damageWinPrivateKey; +static int damageScrPrivateKeyIndex; +static DevPrivateKey damageScrPrivateKey = &damageScrPrivateKeyIndex; +static int damagePixPrivateKeyIndex; +static DevPrivateKey damagePixPrivateKey = &damagePixPrivateKeyIndex; +static int damageGCPrivateKeyIndex; +static DevPrivateKey damageGCPrivateKey = &damageGCPrivateKeyIndex; +static int damageWinPrivateKeyIndex; +static DevPrivateKey damageWinPrivateKey = &damageWinPrivateKeyIndex; static DamagePtr * getDrawableDamageRef (DrawablePtr pDrawable) |