Moved VGA-emulating DirectX code from dispdib.c to a separate
[wine/multimedia.git] / include / palette.h
blobc913fd13bbe351fad76f245d4d947904e0263c97
1 /*
2 * GDI palette definitions
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_PALETTE_H
8 #define __WINE_PALETTE_H
10 #include "gdi.h"
12 #define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
14 /* GDI logical palette object */
15 typedef struct
17 GDIOBJHDR header;
18 int *mapping;
19 LOGPALETTE logpalette; /* _MUST_ be the last field */
20 } PALETTEOBJ;
22 extern HPALETTE16 PALETTE_Init();
23 extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
24 extern BOOL32 PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
25 extern BOOL32 PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
27 #endif /* __WINE_PALETTE_H */