f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#include "colormapst.h"
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#ifndef _MICMAP_H_
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define _MICMAP_H_
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define GetInstalledmiColormap(s) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define SetInstalledmiColormap(s,c) \
f78b12e570284aa8291f4ca1add24937fd107403vboxsync (dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec;
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsynctypedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync int *, VisualID *, unsigned long, int,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync int);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT void miInstallColormap(ColormapPtr pmap);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT void miUninstallColormap(ColormapPtr pmap);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync VisualPtr);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miInitializeColormap(ColormapPtr);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miCreateDefColormap(ScreenPtr);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT void miClearVisualTypes(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miSetVisualTypes(int, int, int, int);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miSetPixmapDepths(void);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync int preferredCVC,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync Pixel redMask, Pixel greenMask, Pixel blueMask);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT int miGetDefaultVisualMask(int);
f78b12e570284aa8291f4ca1add24937fd107403vboxsyncextern _X_EXPORT Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *,
f78b12e570284aa8291f4ca1add24937fd107403vboxsync unsigned long, int, int);
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define MAX_PSEUDO_DEPTH 10
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define MIN_TRUE_DEPTH 6
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define StaticGrayMask (1 << StaticGray)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define GrayScaleMask (1 << GrayScale)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define StaticColorMask (1 << StaticColor)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define PseudoColorMask (1 << PseudoColor)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define TrueColorMask (1 << TrueColor)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define DirectColorMask (1 << DirectColor)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define ALL_VISUALS (StaticGrayMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync GrayScaleMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync StaticColorMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync PseudoColorMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync TrueColorMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync DirectColorMask)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define LARGE_VISUALS (TrueColorMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync DirectColorMask)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#define SMALL_VISUALS (StaticGrayMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync GrayScaleMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync StaticColorMask|\
f78b12e570284aa8291f4ca1add24937fd107403vboxsync PseudoColorMask)
f78b12e570284aa8291f4ca1add24937fd107403vboxsync
f78b12e570284aa8291f4ca1add24937fd107403vboxsync#endif /* _MICMAP_H_ */