ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_pixar.c
(Generate patch)

Comparing ray/src/px/ra_pixar.c (file contents):
Revision 1.1 by greg, Mon Jul 24 08:42:56 1989 UTC vs.
Revision 1.4 by greg, Mon Nov 11 14:01:21 1991 UTC

# Line 1 | Line 1
1 < /* Copyright 1989 Regents of the University of California */
1 > /* Copyright (c) 1991 Regents of the University of California */
2  
3   #ifndef lint
4   static char SCCSid[] = "$SunId$ LBL";
# Line 41 | Line 41 | static char SCCSid[] = "$SunId$ LBL";
41          ((col)[RED]=(r),(col)[GRN]=(g),(col)[BLU]=(b))
42   typedef float  COLOR[3];        /* red, green, blue */
43   #endif
44 + #include "resolu.h"
45  
46  
47   char                    *ProgramName;
# Line 162 | Line 163 | int            *h;
163        exit(1);
164     }
165     getheader(radiance_fp,NULL);
166 <   if (fscanf(radiance_fp,"-Y %d +X %d\n",h,w) != 2)
166 >   if (fgetresolu(w, h, radiance_fp) < 0)
167     {
168        fprintf(stderr,"bad RADIANCE format\n");
169        exit(1);
# Line 269 | Line 270 | int            y;
270   {
271     printargs(global_argc,global_argv,fp);
272     fputc('\n',fp);
273 <   fprintf(fp,"-Y %d +X %d\n",y,x);
273 >   fprtresolu(x, y, fp);
274     fflush(fp);
275   }
276  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines