mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
28 lines
725 B
C
28 lines
725 B
C
/*
|
|
* GDI palette definitions
|
|
*
|
|
* Copyright 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_PALETTE_H
|
|
#define __WINE_PALETTE_H
|
|
|
|
#include "gdi.h"
|
|
|
|
#define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
|
|
|
|
/* GDI logical palette object */
|
|
typedef struct
|
|
{
|
|
GDIOBJHDR header;
|
|
int *mapping;
|
|
LOGPALETTE logpalette; /* _MUST_ be the last field */
|
|
} PALETTEOBJ;
|
|
|
|
extern HPALETTE16 PALETTE_Init(void);
|
|
extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
|
|
extern BOOL32 PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
|
|
extern BOOL32 PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
|
|
|
|
#endif /* __WINE_PALETTE_H */
|