*** empty log message ***
[reactos.git] / reactos / subsys / win32k / eng / palette.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * PURPOSE: GDI Driver Bitmap Functions
5 * FILE: subsys/win32k/eng/palette.c
6 * PROGRAMER: Jason Filby
7 * REVISION HISTORY:
8 * 11/7/1999: Created
9 */
10
11 #include <ddk/winddi.h>
12
13 HPALETTE EngCreatePalette(IN ULONG Mode,
14 IN ULONG NumColors,
15 IN PULONG *Colors,
16 IN ULONG Red,
17 IN ULONG Green,
18 IN ULONG Blue)
19 {
20 /* We need to take the colors given to us and generate a nice default color
21 model */
22
23 if(Mode==PAL_INDEXED)
24 {
25 /* For now the ultimate color model is just colors.. */
26 }
27
28 /* FIXME: Add support for other given palette types */
29
30 /* FIXME: Generate a handle for Colors */
31
32 return Colors;
33 }
34
35 BOOL EngDeletePalette(IN HPALETTE hpal)
36 {
37 /* Should actually get the pointer from this handle.. which for now IS
38 the pointer */
39
40 EngFreeMem(hpal);
41 }