--- ray/src/px/ra_tiff.c 1991/08/15 15:47:35 1.5 +++ ray/src/px/ra_tiff.c 1991/12/19 14:52:25 2.2 @@ -14,8 +14,9 @@ static char SCCSid[] = "$SunId$ LBL"; #include "color.h" -extern double atof(); +#include "resolu.h" + extern char *malloc(), *realloc(); int lzcomp = 0; /* use Lempel-Ziv compression? */ @@ -142,7 +143,7 @@ char *inpf, *outf; fputs(" -r\n", stdout); fputformat(COLRFMT, stdout); putchar('\n'); - fputresolu(YDECR|YMAJOR, xmax, ymax, stdout); + fprtresolu(xmax, ymax, stdout); /* convert image */ if (nsamps == 1) pconfig = 1; @@ -204,7 +205,7 @@ char *inpf, *outf; if (strcmp(inpf, "-") && freopen(inpf, "r", stdin) == NULL) quiterr("cannot open Radiance input file"); if (checkheader(stdin, COLRFMT, NULL) < 0 || - fgetresolu(&xmax, &ymax, stdin) != (YDECR|YMAJOR)) + fgetresolu(&xmax, &ymax, stdin) < 0) quiterr("bad Radiance picture"); /* open TIFF file */ if ((tif = TIFFOpen(outf, "w")) == NULL)