12 |
|
#include "plot.h" |
13 |
|
#include "rast.h" |
14 |
|
#include "bmpfile.h" |
15 |
+ |
#include "targa.h" |
16 |
|
|
17 |
|
#define MAXALLOC 30000 |
18 |
|
#define DXSIZE 400 /* default x resolution */ |
40 |
|
static short condonly = FALSE, |
41 |
|
conditioned = FALSE; |
42 |
|
|
42 |
– |
static int putthead(struct hdStruct *hp, char *ip, FILE *fp); |
43 |
|
|
44 |
|
|
45 |
|
|
156 |
|
static unsigned char cmap[24] = {255,255,255, 255,152,0, 0,188,0, 0,0,255, |
157 |
|
179,179,0, 255,0,255, 0,200,200, 0,0,0}; |
158 |
|
*/ |
159 |
< |
static const unsigned char cmap[8][3] = {0,0,0, 0,0,255, 0,188,0, 255,152,0, |
160 |
< |
0,200,200, 255,0,255, 179,179,0, 255,255,255}; |
159 |
> |
static const unsigned char cmap[8][3] = {{0,0,0}, {0,0,255}, {0,188,0}, |
160 |
> |
{255,152,0}, {0,200,200}, {255,0,255}, {179,179,0}, {255,255,255}}; |
161 |
|
static int filenum = 0; |
162 |
|
BMPHeader *hp; |
163 |
|
register int i; |
211 |
|
printblock(void) /* output scanline block to file */ |
212 |
|
|
213 |
|
{ |
214 |
< |
int i, c2; |
214 |
> |
int i; |
215 |
|
register unsigned char *scanline; |
216 |
– |
register int j, beg, cnt = 0; |
216 |
|
|
217 |
|
if (lineno == 0) |
218 |
|
initfile(); |