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