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