--- ray/src/px/ra_tiff.c 1991/12/19 14:52:25 2.2 +++ ray/src/px/ra_tiff.c 1993/11/18 09:55:26 2.5 @@ -10,6 +10,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include +#include + #include "tiffio.h" #include "color.h" @@ -23,7 +25,7 @@ int lzcomp = 0; /* use Lempel-Ziv compression? */ int greyscale = 0; /* produce greyscale image? */ -double gamma = 2.2; /* gamma correction */ +double gamcor = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ @@ -43,7 +45,7 @@ char *argv[]; if (argv[i][0] == '-') switch (argv[i][1]) { case 'g': - gamma = atof(argv[++i]); + gamcor = atof(argv[++i]); break; case 'z': lzcomp = !lzcomp; @@ -67,7 +69,7 @@ char *argv[]; else break; doneopts: - setcolrgam(gamma); + setcolrgam(gamcor); if (reverse) if (i != argc-2 && i != argc-1) @@ -143,7 +145,7 @@ char *inpf, *outf; fputs(" -r\n", stdout); fputformat(COLRFMT, stdout); putchar('\n'); - fprtresolu(xmax, ymax, stdout); + fprtresolu((int)xmax, (int)ymax, stdout); /* convert image */ if (nsamps == 1) pconfig = 1;