1 |
|
---|
2 | #include "colormapst.h"
|
---|
3 |
|
---|
4 | #ifndef _MICMAP_H_
|
---|
5 | #define _MICMAP_H_
|
---|
6 |
|
---|
7 | extern ColormapPtr miInstalledMaps[MAXSCREENS];
|
---|
8 |
|
---|
9 | typedef Bool (* miInitVisualsProcPtr)(VisualPtr *, DepthPtr *, int *, int *,
|
---|
10 | int *, VisualID *, unsigned long, int,
|
---|
11 | int);
|
---|
12 |
|
---|
13 | int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
|
---|
14 | void miInstallColormap(ColormapPtr pmap);
|
---|
15 | void miUninstallColormap(ColormapPtr pmap);
|
---|
16 |
|
---|
17 | void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
|
---|
18 | VisualPtr);
|
---|
19 | Bool miInitializeColormap(ColormapPtr);
|
---|
20 | int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
|
---|
21 | Bool miCreateDefColormap(ScreenPtr);
|
---|
22 | void miClearVisualTypes(void);
|
---|
23 | Bool miSetVisualTypes(int, int, int, int);
|
---|
24 | Bool miSetPixmapDepths(void);
|
---|
25 | Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
|
---|
26 | int preferredCVC,
|
---|
27 | Pixel redMask, Pixel greenMask, Pixel blueMask);
|
---|
28 | int miGetDefaultVisualMask(int);
|
---|
29 | Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *,
|
---|
30 | unsigned long, int, int);
|
---|
31 |
|
---|
32 | #define MAX_PSEUDO_DEPTH 10
|
---|
33 | #define MIN_TRUE_DEPTH 6
|
---|
34 |
|
---|
35 | #define StaticGrayMask (1 << StaticGray)
|
---|
36 | #define GrayScaleMask (1 << GrayScale)
|
---|
37 | #define StaticColorMask (1 << StaticColor)
|
---|
38 | #define PseudoColorMask (1 << PseudoColor)
|
---|
39 | #define TrueColorMask (1 << TrueColor)
|
---|
40 | #define DirectColorMask (1 << DirectColor)
|
---|
41 |
|
---|
42 | #define ALL_VISUALS (StaticGrayMask|\
|
---|
43 | GrayScaleMask|\
|
---|
44 | StaticColorMask|\
|
---|
45 | PseudoColorMask|\
|
---|
46 | TrueColorMask|\
|
---|
47 | DirectColorMask)
|
---|
48 |
|
---|
49 | #define LARGE_VISUALS (TrueColorMask|\
|
---|
50 | DirectColorMask)
|
---|
51 |
|
---|
52 | #define SMALL_VISUALS (StaticGrayMask|\
|
---|
53 | GrayScaleMask|\
|
---|
54 | StaticColorMask|\
|
---|
55 | PseudoColorMask)
|
---|
56 |
|
---|
57 | #endif /* _MICMAP_H_ */
|
---|