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

Comparing ray/src/rt/rpict.c (file contents):
Revision 1.6 by greg, Mon Jul 10 15:21:30 1989 UTC vs.
Revision 1.7 by greg, Tue Sep 12 12:28:26 1989 UTC

# Line 112 | Line 112 | char  *oldfile;
112          }
113          
114                                          /* write out boundaries */
115 <        printf("-Y %d +X %d\n", ourview.vresolu, ourview.hresolu);
115 >        fputresolu(YMAJOR|YDECR, ourview.hresolu, ourview.vresolu, stdout);
116  
117          ypos = ourview.vresolu - salvage(oldfile);      /* find top line */
118          fillscanline(scanbar[0], ypos, psample);        /* top scan */
# Line 263 | Line 263 | char  *oldfile;
263                                  /* discard header */
264          getheader(fp, NULL);
265                                  /* get picture size */
266 <        if (fscanf(fp, "-Y %d +X %d\n", &y, &x) != 2) {
266 >        if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) {
267                  sprintf(errmsg, "bad recover file \"%s\"", oldfile);
268                  error(WARNING, errmsg);
269                  fclose(fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines