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

# Line 50 | Line 50 | char  **argv;
50          while (fgets(sbuf, sizeof(sbuf), input) != NULL && sbuf[0] != '\n')
51                  ;
52                                  /* get picture dimensions */
53 <        if (fgets(sbuf, sizeof(sbuf), input) == NULL ||
54 <                        sscanf(sbuf, "-Y %d +X %d\n", &yres, &xres) != 2) {
53 >        if (fgetresolu(&xres, &yres, input) != (YMAJOR|YDECR)) {
54                  fprintf(stderr, "%s: bad picture size\n", progname);
55                  exit(1);
56          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines