--- ray/src/px/aedimage.c 1989/02/02 10:49:04 1.1 +++ ray/src/px/aedimage.c 1989/09/12 13:04:16 1.3 @@ -58,7 +58,7 @@ static char SCCSid[] = "$SunId$ LBL"; #define byte(b) putc(b, stdout) #define flush() fflush(stdout) -#define GAMMA 2.0 /* gamma value used in correction */ +#define GAMMA 2.5 /* gamma value used in correction */ #define MINCOLOR 8 /* start of device color table */ @@ -146,8 +146,7 @@ char *argv[]; exposure *= atof(sbuf+9); /* get picture dimensions */ - if (fgets(sbuf, sizeof(sbuf), fin) == NULL || - sscanf(sbuf, "-Y %d +X %d\n", &ymax, &xmax) != 2) + if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR)) quitmsg("bad picture size"); if (xmax > NCOLS || ymax > NROWS) quitmsg("resolution mismatch");