--- ray/src/px/ra_t16.c 1991/08/07 08:36:35 1.13 +++ ray/src/px/ra_t16.c 1991/11/12 16:04:21 2.1 @@ -15,6 +15,8 @@ static char SCCSid[] = "$SunId$ LBL"; #include "color.h" +#include "resolu.h" + #include "random.h" #include "targa.h" @@ -34,7 +36,7 @@ extern char *ecalloc(), *emalloc(); extern double atof(), pow(); -double gamma = 2.0; /* gamma correction */ +double gamma = 2.2; /* gamma correction */ int bradj = 0; /* brightness adjustment */ @@ -105,12 +107,12 @@ char *argv[]; printargs(i, argv, stdout); fputformat(COLRFMT, stdout); putchar('\n'); - fputresolu(YMAJOR|YDECR, head.x, head.y, stdout); + fprtresolu(head.x, head.y, stdout); /* convert file */ tg2ra(&head); } else { if (checkheader(stdin, COLRFMT, NULL) < 0 || - fgetresolu(&head.x, &head.y, stdin) != (YMAJOR|YDECR)) + fgetresolu(&head.x, &head.y, stdin) < 0) quiterr("bad picture file"); /* assign header */ head.textSize = 0;