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