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

Comparing ray/src/px/ttyimage.c (file contents):
Revision 1.4 by greg, Fri Oct 20 20:36:08 1989 UTC vs.
Revision 1.5 by greg, Thu Jan 25 08:28:36 1990 UTC

# Line 25 | Line 25 | char  **argv;
25          FILE  *input;
26          int  xres, yres;
27          COLR  scanline[NCOLS];
28        char  sbuf[256];
28          register int  i, j;
29          
30          if (argc < 2)
# Line 36 | Line 35 | char  **argv;
35          }
36          
37                                  /* discard header */
38 <        while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n')
40 <                ;
38 >        getheader(input, NULL);
39                                  /* get picture dimensions */
40          if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
41                  fprintf(stderr, "%s: bad picture size\n", argv[0]);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines