b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/iplan2p4/ipl.h,v 3.5 2001/01/30 22:06:21 tsi Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XConsortium: ipl.h,v 5.37 94/04/17 20:28:38 dpw Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/************************************************************
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCopyright 1987 by Sun Microsystems, Inc. Mountain View, CA.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync All Rights Reserved
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncPermission to use, copy, modify, and distribute this
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncsoftware and its documentation for any purpose and without
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncfee is hereby granted, provided that the above copyright no-
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctice appear in all copies and that both that copyright no-
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctice and this permission notice appear in supporting docu-
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncmentation, and that the names of Sun or X Consortium
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncnot be used in advertising or publicity pertaining to
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncdistribution of the software without specific prior
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncwritten permission. Sun and X Consortium make no
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncrepresentations about the suitability of this software for
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncany purpose. It is provided "as is" without any express or
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncimplied warranty.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncSUN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncINCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT-
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SUN BE LI-
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncPROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncTHE USE OR PERFORMANCE OF THIS SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync********************************************************/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Modified nov 94 by Martin Schaller (Martin_Schaller@maus.r.de) for use with
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncinterleaved planes */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync private filed of pixmap
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync pixmap.devPrivate = (unsigned int *)pointer_to_bits
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync pixmap.devKind = width_of_pixmap_in_bytes
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* private field of GC */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /* next two values unused in ipl, included for compatibility with mfb */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned char ropOpStip; /* rop for opaque stipple */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /* this value is ropFillArea in mfb, usurped for ipl */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned char oneRect; /* drawable has one clip rect */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short xorg[INTER_PLANES],andg[INTER_PLANES];
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetCompositeClip(pGC) ((pGC)->pCompositeClip)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* way to carry RROP info around */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short xorg[INTER_PLANES],andg[INTER_PLANES];
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* private field of window */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned char fastBorder; /* non-zero if border is 32 bits wide */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short unused; /* pad for alignment with Sun compiler */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*fg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*fg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*bg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*numRects*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*bitPlane*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x2p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y2p*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x2p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y2p*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x2p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y2p*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y1p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*x2p*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*y2p*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*window_index*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*gc_index*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*height*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dstx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dsty*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync void (* /*doBitBlt*/)(),
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*bitPlane*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*height*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dstx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dsty*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*bitPlane*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*srcy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*height*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dstx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dsty*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*bitPlane*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*and*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*xor*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*addrl*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nlwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*signdx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*signdy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*axis*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*e1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*e2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*len*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pdashIndex*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned char * /*pDash*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*numInDashList*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pdashOffset*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*isDoubleDash*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*addrl*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nlwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*signdx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*signdy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*axis*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*e1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*e2*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*len*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xorg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yorg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xorg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yorg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*pred*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*pgreen*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*pblue*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*ndef*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*depth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*visuals*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*bitsPerRGB*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*nvisualp*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*ndepthp*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*rootDepthp*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*sizes*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*bitsPerRGB*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*narcs*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*narcs*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nrectFill*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*changes*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*wMax*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nspans*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char * /*pdstStart*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*nglyph*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*nglyph*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*and*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*xor*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*addrg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nlwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*len*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*and*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*xor*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*addrg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nlwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*x1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*y1*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*len*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*nglyph*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*depth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*leftPad*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*format*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char * /*pImage*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*sx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*sy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*format*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planeMask*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char * /*pdstLine*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*height*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*depth*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*shape*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*count*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*shape*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*count*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*what*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*pixel*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*mode*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*npt*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dx*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xOrg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yOrg*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*rop*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*fg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*pm*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*andp*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*xorp*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*index*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xsize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*ysize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpix*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpiy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xsize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*ysize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpix*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpiy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xsize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*ysize*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpix*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*dpiy*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*width*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nseg*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xOrigin*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xStart*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xEnd*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int * /*psrc*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned short * /*pdstBase*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*widthDst*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char * /*psrc*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nspans*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*nglyph*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned int /*nglyph*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidthInit*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*fSorted*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*nBox*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int * /*pwidth*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*xrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*yrot*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*alu*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*planemask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long /*mask*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*narcs*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*narcs*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int /*narcs*/,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Common macros for extracting drawing information */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#if (!defined(SINGLEDEPTH) && PSZ != 8) || defined(FORCE_SEPARATE_PRIVATE)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync ((* ((DrawablePtr)(d))->pScreen->GetWindowPixmap)((WindowPtr)(d)))
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync (int)(((PixmapPtr)pDrawable)->devKind)) / sizeof (wtype))
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetByteWidth(pDrawable) iplGetTypedWidth(pDrawable, unsigned char)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetPixelWidth(pDrawable) iplGetTypedWidth(pDrawable, PixelType)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetLongWidth(pDrawable) iplGetTypedWidth(pDrawable, unsigned long)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetTypedWidthAndPointer(pDrawable, width, pointer, wtype, ptype) {\
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync (width) = ((int) _pPix->devKind) / sizeof (wtype); \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetByteWidthAndPointer(pDrawable, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetTypedWidthAndPointer(pDrawable, width, pointer, unsigned char, unsigned char)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetLongWidthAndPointer(pDrawable, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetTypedWidthAndPointer(pDrawable, width, pointer, unsigned long, unsigned long)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetPixelWidthAndPointer(pDrawable, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetTypedWidthAndPointer(pDrawable, width, pointer, PixelType, PixelType)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetWindowTypedWidthAndPointer(pWin, width, pointer, wtype, ptype) {\
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync PixmapPtr _pPix = iplGetWindowPixmap((DrawablePtr) (pWin)); \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync (width) = ((int) _pPix->devKind) / sizeof (wtype); \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetWindowLongWidthAndPointer(pWin, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetWindowTypedWidthAndPointer(pWin, width, pointer, unsigned long, unsigned long)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetWindowByteWidthAndPointer(pWin, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetWindowTypedWidthAndPointer(pWin, width, pointer, unsigned char, unsigned char)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define iplGetWindowPixelWidthAndPointer(pDrawable, width, pointer) \
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync iplGetWindowTypedWidthAndPointer(pDrawable, width, pointer, PixelType, PixelType)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Macros which handle a coordinate in a single register */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* Most compilers will convert divide by 65536 into a shift, if signed
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * shifts exist. If your machine does arithmetic shifts and your compiler
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * can't get it right, add to this line.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* mips compiler - what a joke - it CSEs the 65536 constant into a reg
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * forcing as to use div instead of shift. Let's be explicit.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#if defined(mips) || defined(sparc) || defined(__alpha) || defined(__alpha__)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define intToCoord(i,x,y) (((x) = GetHighWord(i)), ((y) = (int) ((short) (i))))
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define intToCoord(i,x,y) (((x) = (int) ((short) (i))), ((y) = GetHighWord(i)))