--- ray/src/px/ra_pixar.c 1989/09/12 13:04:45 1.2 +++ ray/src/px/ra_pixar.c 1991/11/11 14:01:21 1.4 @@ -1,4 +1,4 @@ -/* Copyright 1989 Regents of the University of California */ +/* Copyright (c) 1991 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -41,6 +41,7 @@ static char SCCSid[] = "$SunId$ LBL"; ((col)[RED]=(r),(col)[GRN]=(g),(col)[BLU]=(b)) typedef float COLOR[3]; /* red, green, blue */ #endif +#include "resolu.h" char *ProgramName; @@ -162,7 +163,7 @@ int *h; exit(1); } getheader(radiance_fp,NULL); - if (fgetresolu(w, h, radiance_fp) != (YMAJOR|YDECR)) + if (fgetresolu(w, h, radiance_fp) < 0) { fprintf(stderr,"bad RADIANCE format\n"); exit(1); @@ -269,7 +270,7 @@ int y; { printargs(global_argc,global_argv,fp); fputc('\n',fp); - fputresolu(YMAJOR|YDECR, x, y, fp); + fprtresolu(x, y, fp); fflush(fp); }