palette.h 1.5 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4
/*
 * GDI palette definitions
 *
 * Copyright 1994 Alexandre Julliard
5 6 7 8 9 10 11 12 13 14 15 16 17 18
 *
 * 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
Alexandre Julliard's avatar
Alexandre Julliard committed
19 20 21 22 23 24 25
 */

#ifndef __WINE_PALETTE_H
#define __WINE_PALETTE_H

#include "gdi.h"

26 27 28 29 30
#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 */
Alexandre Julliard's avatar
Alexandre Julliard committed
31

Alexandre Julliard's avatar
Alexandre Julliard committed
32
  /* GDI logical palette object */
33
typedef struct tagPALETTEOBJ
Alexandre Julliard's avatar
Alexandre Julliard committed
34
{
35 36 37
    GDIOBJHDR                    header;
    int                          *mapping;
    LOGPALETTE                   logpalette; /* _MUST_ be the last field */
Alexandre Julliard's avatar
Alexandre Julliard committed
38 39
} PALETTEOBJ;

40
extern HPALETTE PALETTE_Init(void);
Brad Pepers's avatar
Brad Pepers committed
41

Alexandre Julliard's avatar
Alexandre Julliard committed
42
#endif /* __WINE_PALETTE_H */