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.2 by greg, Tue Sep 12 13:04:45 1989 UTC

# Line 162 | Line 162 | int            *h;
162        exit(1);
163     }
164     getheader(radiance_fp,NULL);
165 <   if (fscanf(radiance_fp,"-Y %d +X %d\n",h,w) != 2)
165 >   if (fgetresolu(w, h, radiance_fp) != (YMAJOR|YDECR))
166     {
167        fprintf(stderr,"bad RADIANCE format\n");
168        exit(1);
# Line 269 | Line 269 | int            y;
269   {
270     printargs(global_argc,global_argv,fp);
271     fputc('\n',fp);
272 <   fprintf(fp,"-Y %d +X %d\n",y,x);
272 >   fputresolu(YMAJOR|YDECR, x, y, fp);
273     fflush(fp);
274   }
275  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines