2 #include "colormapst.h"
7 #define GetInstalledmiColormap(s) \
8 ((ColormapPtr) dixLookupPrivate(&(s)->devPrivates, micmapScrPrivateKey))
9 #define SetInstalledmiColormap(s,c) \
10 (dixSetPrivate(&(s)->devPrivates, micmapScrPrivateKey, c))
12 extern _X_EXPORT DevPrivateKeyRec micmapScrPrivateKeyRec
;
14 #define micmapScrPrivateKey (&micmapScrPrivateKeyRec)
16 typedef Bool (*miInitVisualsProcPtr
) (VisualPtr
*, DepthPtr
*, int *, int *,
17 int *, VisualID
*, unsigned long, int,
20 extern _X_EXPORT
int miListInstalledColormaps(ScreenPtr pScreen
,
22 extern _X_EXPORT
void miInstallColormap(ColormapPtr pmap
);
23 extern _X_EXPORT
void miUninstallColormap(ColormapPtr pmap
);
25 extern _X_EXPORT
void miResolveColor(unsigned short *, unsigned short *,
26 unsigned short *, VisualPtr
);
27 extern _X_EXPORT Bool
miInitializeColormap(ColormapPtr
);
28 extern _X_EXPORT
int miExpandDirectColors(ColormapPtr
, int, xColorItem
*,
30 extern _X_EXPORT Bool
miCreateDefColormap(ScreenPtr
);
31 extern _X_EXPORT
void miClearVisualTypes(void);
32 extern _X_EXPORT Bool
miSetVisualTypes(int, int, int, int);
33 extern _X_EXPORT Bool
miSetPixmapDepths(void);
34 extern _X_EXPORT Bool
miSetVisualTypesAndMasks(int depth
, int visuals
,
35 int bitsPerRGB
, int preferredCVC
,
36 Pixel redMask
, Pixel greenMask
,
38 extern _X_EXPORT
int miGetDefaultVisualMask(int);
39 extern _X_EXPORT Bool
miInitVisuals(VisualPtr
*, DepthPtr
*, int *, int *,
40 int *, VisualID
*, unsigned long, int, int);
42 #define MAX_PSEUDO_DEPTH 10
43 #define MIN_TRUE_DEPTH 6
45 #define StaticGrayMask (1 << StaticGray)
46 #define GrayScaleMask (1 << GrayScale)
47 #define StaticColorMask (1 << StaticColor)
48 #define PseudoColorMask (1 << PseudoColor)
49 #define TrueColorMask (1 << TrueColor)
50 #define DirectColorMask (1 << DirectColor)
52 #define ALL_VISUALS (StaticGrayMask|\
59 #define LARGE_VISUALS (TrueColorMask|\
62 #define SMALL_VISUALS (StaticGrayMask|\
67 #endif /* _MICMAP_H_ */