From 559919d8210057b3a5dd00f73e2899c8b41db480 Mon Sep 17 00:00:00 2001 From: Jason Filby Date: Tue, 24 Sep 2002 20:25:49 +0000 Subject: [PATCH] Added missing palette.h svn path=/trunk/; revision=3562 --- reactos/subsys/win32k/include/palette.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 reactos/subsys/win32k/include/palette.h diff --git a/reactos/subsys/win32k/include/palette.h b/reactos/subsys/win32k/include/palette.h new file mode 100644 index 00000000000..48bcb5ab2fc --- /dev/null +++ b/reactos/subsys/win32k/include/palette.h @@ -0,0 +1,25 @@ +#ifndef __WIN32K_PALETTE_H +#define __WIN32K_PALETTE_H + +#define PALETTE_FIXED 0x0001 /* read-only colormap - have to use XAllocColor (if not virtual) */ +#define PALETTE_VIRTUAL 0x0002 /* no mapping needed - pixel == pixel color */ + +#define PALETTE_PRIVATE 0x1000 /* private colormap, identity mapping */ +#define PALETTE_WHITESET 0x2000 + +typedef struct { + int shift; + int scale; + int max; +} ColorShifts; + +static ColorShifts PALETTE_PRed = {0,0,0}; +static ColorShifts PALETTE_LRed = {0,0,0}; +static ColorShifts PALETTE_PGreen = {0,0,0}; +static ColorShifts PALETTE_LGreen = {0,0,0}; +static ColorShifts PALETTE_PBlue = {0,0,0}; +static ColorShifts PALETTE_LBlue = {0,0,0}; +static int PALETTE_Graymax = 0; +static int palette_size; + +#endif /* __WIN32K_PALETTE_H */