--- np2/generic/cmndraw.h 2003/11/21 06:51:11 1.1 +++ np2/generic/cmndraw.h 2004/03/09 23:39:19 1.2 @@ -12,6 +12,13 @@ struct _cmnpalfn { typedef struct _cmnpalfn CMNPALFN; typedef struct { + UINT8 pal8; + UINT8 padding; + UINT16 pal16; + RGB32 pal32; +} CMNPAL; + +typedef struct { BYTE *ptr; int width; int height; @@ -24,6 +31,7 @@ typedef struct { extern "C" { #endif +void cmndraw_getpals(CMNPALFN *fn, CMNPAL *pal, UINT pals); void cmndraw_makegrad(RGB32 *pal, int pals, RGB32 bg, RGB32 fg); #if defined(SUPPORT_8BPP) @@ -62,6 +70,11 @@ void cmndraw32_setpat(const CMNVRAM *vra int x, int y, RGB32 bg, RGB32 fg); #endif + +// ---- + +void cmddraw_fill(CMNVRAM *vram, int x, int y, int cx, int cy, CMNPAL *pal); + #ifdef __cplusplus } #endif