Fix regression in RealizePalette. Send broadcast message if palette was changed.
[reactos.git] / reactos / subsystems / win32 / win32k / include / color.h
1 #ifndef _WIN32K_COLOR_H
2 #define _WIN32K_COLOR_H
3
4 #ifndef CLR_INVALID
5 #define CLR_INVALID 0xffffffff
6 #endif
7 #define PC_SYS_USED 0x80 /* palentry is used (both system and logical) */
8 #define PC_SYS_RESERVED 0x40 /* system palentry is not to be mapped to */
9 #define PC_SYS_MAPPED 0x10 /* logical palentry is a direct alias for system palentry */
10
11 #define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
12
13 const PALETTEENTRY* FASTCALL COLOR_GetSystemPaletteTemplate (VOID);
14 COLORREF STDCALL COLOR_LookupNearestColor (PALETTEENTRY* palPalEntry, INT size, COLORREF color);
15 INT STDCALL COLOR_PaletteLookupExactIndex (PALETTEENTRY* palPalEntry, INT size, COLORREF col);
16 INT STDCALL COLOR_PaletteLookupPixel(PALETTEENTRY *palPalEntry, INT size, XLATEOBJ *XlateObj, COLORREF col, BOOL skipReserved);
17 UINT FASTCALL IntGdiRealizePalette (HDC);
18
19 #endif /* _WIN32K_COLOR_H */