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

Comparing ray/src/px/ra_t16.c (file contents):
Revision 1.3 by greg, Sun Jul 23 11:35:48 1989 UTC vs.
Revision 1.4 by greg, Tue Sep 12 13:04:36 1989 UTC

# Line 93 | Line 93 | char  *argv[];
93                                          /* put header */
94                  printargs(argc, argv, stdout);
95                  putchar('\n');
96 <                printf("-Y %d +X %d\n", head.y, head.x);
96 >                fputresolu(YMAJOR|YDECR, head.x, head.y, stdout);
97                                          /* convert file */
98                  tg2ra(&head);
99          } else {
100                  getheader(stdin, NULL);
101 <                if (scanf("-Y %d +X %d\n", &head.y, &head.x) != 2)
101 >                if (fgetresolu(&head.x, &head.y, stdin) != (YMAJOR|YDECR))
102                          quiterr("bad picture file");
103                                          /* assign header */
104                  head.textSize = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines