1995-01-09 19:21:16 +01:00
|
|
|
/*
|
|
|
|
* GDI palette definitions
|
|
|
|
*
|
|
|
|
* Copyright 1994 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1995-01-09 19:21:16 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_PALETTE_H
|
|
|
|
#define __WINE_PALETTE_H
|
|
|
|
|
|
|
|
#include "gdi.h"
|
|
|
|
|
2002-06-02 23:40:24 +02:00
|
|
|
#define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
|
|
|
|
|
|
|
|
#define PC_SYS_USED 0x80 /* palentry is used (both system and logical) */
|
|
|
|
#define PC_SYS_RESERVED 0x40 /* system palentry is not to be mapped to */
|
|
|
|
#define PC_SYS_MAPPED 0x10 /* logical palentry is a direct alias for system palentry */
|
1997-06-16 19:43:53 +02:00
|
|
|
|
1995-01-09 19:21:16 +01:00
|
|
|
/* GDI logical palette object */
|
1999-04-01 10:16:08 +02:00
|
|
|
typedef struct tagPALETTEOBJ
|
1995-01-09 19:21:16 +01:00
|
|
|
{
|
1999-04-01 10:16:08 +02:00
|
|
|
GDIOBJHDR header;
|
|
|
|
int *mapping;
|
|
|
|
LOGPALETTE logpalette; /* _MUST_ be the last field */
|
1995-01-09 19:21:16 +01:00
|
|
|
} PALETTEOBJ;
|
|
|
|
|
2002-07-31 21:26:03 +02:00
|
|
|
extern HPALETTE PALETTE_Init(void);
|
1999-02-09 16:37:16 +01:00
|
|
|
|
1996-07-12 21:02:39 +02:00
|
|
|
#endif /* __WINE_PALETTE_H */
|