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

Comparing ray/src/px/aedimage.c (file contents):
Revision 1.2 by greg, Fri Mar 10 10:20:07 1989 UTC vs.
Revision 1.3 by greg, Tue Sep 12 13:04:16 1989 UTC

# Line 146 | Line 146 | char  *argv[];
146                          exposure *= atof(sbuf+9);
147  
148                                  /* get picture dimensions */
149 <        if (fgets(sbuf, sizeof(sbuf), fin) == NULL ||
150 <                        sscanf(sbuf, "-Y %d +X %d\n", &ymax, &xmax) != 2)
149 >        if (fgetresolu(&xmax, &ymax, fin) != (YMAJOR|YDECR))
150                  quitmsg("bad picture size");
151          if (xmax > NCOLS || ymax > NROWS)
152                  quitmsg("resolution mismatch");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines