211 |
|
static int |
212 |
|
headline(char *s, void *p) |
213 |
|
{ |
214 |
< |
char fmt[32]; |
214 |
> |
char fmt[MAXFMTLEN]; |
215 |
|
|
216 |
|
if (formatval(fmt, s)) { /* check if format string */ |
217 |
|
if (!strcmp(fmt,COLRFMT)) |
352 |
|
BMPWriter *wtr; |
353 |
|
FILE *fp; |
354 |
|
int xr, yr; |
355 |
< |
BYTE *pa; |
355 |
> |
uby8 *pa; |
356 |
|
int i; |
357 |
|
/* check tone-mapping spec */ |
358 |
|
i = strlen(expec); |
397 |
|
quiterr("cannot allocate writer structure"); |
398 |
|
/* write to BMP file */ |
399 |
|
while (wtr->yscan < yr) { |
400 |
< |
BYTE *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)* |
400 |
> |
uby8 *scn = pa + xr*((tmflags & TM_F_BW) ? 1 : 3)* |
401 |
|
(yr-1 - wtr->yscan); |
402 |
|
if (tmflags & TM_F_BW) |
403 |
|
memcpy((void *)wtr->scanline, (void *)scn, xr); |