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.1 by greg, Thu Feb 2 10:49:04 1989 UTC vs.
Revision 1.3 by greg, Tue Sep 12 13:04:16 1989 UTC

# Line 58 | Line 58 | static char SCCSid[] = "$SunId$ LBL";
58   #define byte(b)         putc(b, stdout)
59   #define flush()         fflush(stdout)
60  
61 < #define  GAMMA          2.0             /* gamma value used in correction */
61 > #define  GAMMA          2.5             /* gamma value used in correction */
62  
63   #define  MINCOLOR       8               /* start of device color table */
64  
# 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