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.35 by greg, Mon Oct 21 12:57:57 1991 UTC vs.
Revision 1.36 by greg, Mon Nov 11 14:02:45 1991 UTC

# Line 22 | Line 22 | static char SCCSid[] = "$SunId$ LBL";
22  
23   #include  "view.h"
24  
25 + #include  "resolu.h"
26 +
27   #include  "random.h"
28  
29   int  dimlist[MAXDIM];                   /* sampling dimensions */
# Line 160 | Line 162 | char  *zfile, *oldfile;
162                          zbar[i] = NULL;
163          }
164                                          /* write out boundaries */
165 <        fputresolu(YMAJOR|YDECR, hresolu, vresolu, stdout);
165 >        fprtresolu(hresolu, vresolu, stdout);
166                                          /* recover file and compute first */
167          i = salvage(oldfile);
168          if (zfd != -1 && i > 0 &&
# Line 398 | Line 400 | char  *oldfile;
400                                  /* discard header */
401          getheader(fp, NULL);
402                                  /* get picture size */
403 <        if (fgetresolu(&x, &y, fp) != (YMAJOR|YDECR)) {
403 >        if (!fscnresolu(&x, &y, fp)) {
404                  sprintf(errmsg, "bad recover file \"%s\"", oldfile);
405                  error(WARNING, errmsg);
406                  fclose(fp);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines