#include #include #include "iff2c.h" VOID BMap2C(stream, name, base, x, y, width, height, depth, flags) FILE *stream; UBYTE *name, *base; SHORT x, y; USHORT width, height, depth; UBYTE flags; { BOOL empty; UBYTE i, temp[10], pl_pick=0x00, pl_onoff=0x00; USHORT rows, bpr, d_word, d, r, b; /* bpr = bytes per row */ SHORT firstprinted=-1; #ifdef AMIGA if ( (bpr=((width&7? width+8 : width)>>3))&1 ) bpr++; /* word align */ rows = height; #endif if (flags & PRINT_DATA) { fprintf(stream, "\n%sUSHORT %s%sData[] = \n {\n", (flags & STATIC_DATA ? "static " : ""), (flags & LATTICE_CHIP ? "chip " : ""), name ); if (flags & SPRITE_HEADER) fprintf(stream, " 0x0000, 0x0000,%ls\n\n", (flags & PRINT_COMMENTS ? " /* position control */" : "") ); for(d=0; d