8 #define COLOR_FIXED 0x0001 /* read-only colormap - have to use XAllocColor (if not virtual)*/
9 #define COLOR_VIRTUAL 0x0002 /* no mapping needed - pixel == pixel color */
11 #define COLOR_PRIVATE 0x1000 /* private colormap, identity mapping */
12 #define COLOR_WHITESET 0x2000
14 #define PC_SYS_USED 0x80 /* palentry is used (both system and logical) */
15 #define PC_SYS_RESERVED 0x40 /* system palentry is not to be mapped to */
16 #define PC_SYS_MAPPED 0x10 /* logical palentry is a direct alias for system palentry */
18 extern BOOL32
COLOR_Init(void);
19 extern void COLOR_Cleanup(void);
20 extern COLORREF
COLOR_ToLogical(int pixel
);
21 extern int COLOR_ToPhysical( DC
*dc
, COLORREF color
);
22 extern int COLOR_SetMapping( PALETTEOBJ
* pal
, UINT32 uStart
, UINT32 uNum
, BOOL32 mapOnly
);
23 extern BOOL32
COLOR_IsSolid( COLORREF color
);
24 extern Colormap
COLOR_GetColormap(void);
25 extern UINT16
COLOR_GetSystemPaletteSize(void);
26 extern UINT16
COLOR_GetSystemPaletteFlags(void);
27 extern const PALETTEENTRY
* COLOR_GetSystemPaletteTemplate(void);
28 extern BOOL32
COLOR_GetMonoPlane( int* );
30 extern COLORREF
COLOR_LookupNearestColor( PALETTEENTRY
*, int, COLORREF
);
31 extern int COLOR_PaletteLookupPixel( PALETTEENTRY
*, int, int* , COLORREF
, BOOL32
);
32 extern COLORREF
COLOR_GetSystemPaletteEntry(UINT32
);
33 extern int COLOR_LookupSystemPixel(COLORREF col
);
35 extern int COLOR_mapEGAPixel
[16];
36 extern int* COLOR_PaletteToPixel
;
37 extern int* COLOR_PixelToPalette
;
38 extern int COLOR_ColormapSize
;
40 #endif /* __WINE_COLOR_H */