a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Copyright © 2003 Keith Packard
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Permission to use, copy, modify, distribute, and sell this software and its
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * documentation for any purpose is hereby granted without fee, provided that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the above copyright notice appear in all copies and that both that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * copyright notice and this permission notice appear in supporting
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * documentation, and that the name of Keith Packard not be used in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * advertising or publicity pertaining to distribution of the software without
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * specific, written prior permission. Keith Packard makes no
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * representations about the suitability of this software for any purpose. It
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * is provided "as is" without express or implied warranty.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * PERFORMANCE OF THIS SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync RegionRec pendingDamage; /* will be flushed post submission at the latest */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync RegionRec backupDamage; /* for use with damageMarker */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * For DDXen which don't provide GetScreenPixmap, this provides
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * a place to hook damage for windows on the screen
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /* Table of wrappable function pointers */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* XXX should move these into damage.c, damageScrPrivateIndex is static */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define damageGetScrPriv(pScr) ((DamageScrPrivPtr) \
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixLookupPrivate(&(pScr)->devPrivates, damageScrPrivateKey))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixLookupPrivate(&(pPix)->devPrivates, damagePixPrivateKey)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixSetPrivate(&(pPix)->devPrivates, damagePixPrivateKey, v)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixLookupPrivate(&(pGC)->devPrivates, damageGCPrivateKey)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync ((DamagePtr)dixLookupPrivate(&(pWin)->devPrivates, damageWinPrivateKey))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixSetPrivate(&(pWin)->devPrivates, damageWinPrivateKey, d)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* _DAMAGESTR_H_ */