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