Release 961222
[wine/multimedia.git] / include / color.h
blob8eada96841f3583a3f53addbca45fe8586b4276e
1 #ifndef __WINE_COLOR_H
2 #define __WINE_COLOR_H
4 #include "palette.h"
5 #include "gdi.h"
7 #define COLOR_FIXED 0x0001 /* read-only colormap - have to use XAllocColor (if not virtual)*/
8 #define COLOR_VIRTUAL 0x0002 /* no mapping needed - pixel == pixel color */
10 #define COLOR_PRIVATE 0x1000 /* private colormap, identity mapping */
12 #define PC_SYS_USED 0x80 /* palentry is used (both system and logical) */
13 #define PC_SYS_RESERVED 0x40 /* system palentry is not to be mapped to */
14 #define PC_SYS_MAPPED 0x10 /* logical palentry is a direct alias for system palentry */
16 extern HPALETTE16 COLOR_Init(void);
17 extern void COLOR_Cleanup(void);
18 extern COLORREF COLOR_ToLogical(int pixel);
19 extern int COLOR_ToPhysical( DC *dc, COLORREF color );
20 extern int COLOR_SetMapping( PALETTEOBJ* pal, BOOL32 mapOnly );
21 extern BOOL32 COLOR_IsSolid( COLORREF color );
22 extern Colormap COLOR_GetColormap();
23 extern UINT16 COLOR_GetSystemPaletteSize();
24 extern UINT16 COLOR_GetSystemPaletteFlags();
26 extern COLORREF COLOR_LookupNearestColor( PALETTEENTRY*, int, COLORREF );
27 extern int COLOR_PaletteLookupPixel( PALETTEENTRY*, int, int* , COLORREF, BOOL32 );
29 extern int COLOR_mapEGAPixel[16];
30 extern int* COLOR_PaletteToPixel;
31 extern int* COLOR_PixelToPalette;
32 extern int COLOR_ColormapSize;
34 #endif /* __WINE_COLOR_H */