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 | extern miInitVisualsProcPtr miInitVisualsProc;
|
---|
14 |
|
---|
15 | int miListInstalledColormaps(ScreenPtr pScreen, Colormap *pmaps);
|
---|
16 | void miInstallColormap(ColormapPtr pmap);
|
---|
17 | void miUninstallColormap(ColormapPtr pmap);
|
---|
18 |
|
---|
19 | void miResolveColor(unsigned short *, unsigned short *, unsigned short *,
|
---|
20 | VisualPtr);
|
---|
21 | Bool miInitializeColormap(ColormapPtr);
|
---|
22 | int miExpandDirectColors(ColormapPtr, int, xColorItem *, xColorItem *);
|
---|
23 | Bool miCreateDefColormap(ScreenPtr);
|
---|
24 | void miClearVisualTypes(void);
|
---|
25 | Bool miSetVisualTypes(int, int, int, int);
|
---|
26 | Bool miSetPixmapDepths(void);
|
---|
27 | Bool miSetVisualTypesAndMasks(int depth, int visuals, int bitsPerRGB,
|
---|
28 | int preferredCVC,
|
---|
29 | Pixel redMask, Pixel greenMask, Pixel blueMask);
|
---|
30 | int miGetDefaultVisualMask(int);
|
---|
31 | Bool miInitVisuals(VisualPtr *, DepthPtr *, int *, int *, int *, VisualID *,
|
---|
32 | unsigned long, int, int);
|
---|
33 | void miResetInitVisuals(void);
|
---|
34 |
|
---|
35 | void miHookInitVisuals(void (**old)(miInitVisualsProcPtr *),
|
---|
36 | void (*new)(miInitVisualsProcPtr *));
|
---|
37 |
|
---|
38 |
|
---|
39 | #define MAX_PSEUDO_DEPTH 10
|
---|
40 | #define MIN_TRUE_DEPTH 6
|
---|
41 |
|
---|
42 | #define StaticGrayMask (1 << StaticGray)
|
---|
43 | #define GrayScaleMask (1 << GrayScale)
|
---|
44 | #define StaticColorMask (1 << StaticColor)
|
---|
45 | #define PseudoColorMask (1 << PseudoColor)
|
---|
46 | #define TrueColorMask (1 << TrueColor)
|
---|
47 | #define DirectColorMask (1 << DirectColor)
|
---|
48 |
|
---|
49 | #define ALL_VISUALS (StaticGrayMask|\
|
---|
50 | GrayScaleMask|\
|
---|
51 | StaticColorMask|\
|
---|
52 | PseudoColorMask|\
|
---|
53 | TrueColorMask|\
|
---|
54 | DirectColorMask)
|
---|
55 |
|
---|
56 | #define LARGE_VISUALS (TrueColorMask|\
|
---|
57 | DirectColorMask)
|
---|
58 |
|
---|
59 | #define SMALL_VISUALS (StaticGrayMask|\
|
---|
60 | GrayScaleMask|\
|
---|
61 | StaticColorMask|\
|
---|
62 | PseudoColorMask)
|
---|
63 |
|
---|
64 | #endif /* _MICMAP_H_ */
|
---|