From: jwalz Date: Sat, 5 Jan 2002 21:06:02 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: MOVE2GIT~3563 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e36a3d5a930bbaceb6bbbdd4866652df8b046dc5;p=nethack *** empty log message *** --- diff --git a/win/share/tile.h b/win/share/tile.h new file mode 100644 index 000000000..eadc997bc --- /dev/null +++ b/win/share/tile.h @@ -0,0 +1,44 @@ +typedef unsigned char pixval; + +typedef struct { + pixval r, g, b; +} pixel; + +#define MAXCOLORMAPSIZE 256 + +#define CM_RED 0 +#define CM_GREEN 1 +#define CM_BLUE 2 + +/* shared between reader and writer */ +extern pixval ColorMap[3][MAXCOLORMAPSIZE]; +extern int colorsinmap; +/* writer's accumulated colormap */ +extern pixval MainColorMap[3][MAXCOLORMAPSIZE]; +extern int colorsinmainmap; + +#include "dlb.h" /* for MODEs */ + +/* size of tiles */ +#ifndef TILE_X +#define TILE_X 16 +#endif +#define TILE_Y 16 + +#define Fprintf (void) fprintf + + +extern boolean FDECL(fopen_text_file, (const char *, const char *)); +extern boolean FDECL(read_text_tile, (pixel (*)[TILE_X])); +extern boolean FDECL(write_text_tile, (pixel (*)[TILE_X])); +extern int NDECL(fclose_text_file); + +extern void NDECL(init_colormap); +extern void NDECL(merge_colormap); + +#if defined(MICRO) +#undef exit +# if !defined(MSDOS) && !defined(WIN32) +extern void FDECL(exit, (int)); +# endif +#endif