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

Comparing ray/src/rt/rv2.c (file contents):
Revision 1.14 by greg, Mon Jan 8 13:38:05 1990 UTC vs.
Revision 1.17 by greg, Fri Jan 19 00:00:29 1990 UTC

# Line 137 | Line 137 | char  *s;
137          VIEW  nv;
138  
139          if (sscanf(s, "%s", buf) == 1) {        /* get parameters from a file */
140 <                copyview(&nv, &stdview);
140 >                copystruct(&nv, &stdview);
141                  if ((fname = getpath(buf, NULL, 0)) == NULL ||
142 <                                (success = viewfile(fname, &nv)) == -1) {
142 >                                (success = viewfile(fname, &nv, 0, 0)) == -1) {
143                          sprintf(errmsg, "cannot open \"%s\"", buf);
144                          error(COMMAND, errmsg);
145                          return;
# Line 154 | Line 154 | char  *s;
154                  error(COMMAND, "no previous view");
155                  return;
156          }
157 <        copyview(&nv, &ourview);
158 <        copyview(&ourview, &oldview);
159 <        copyview(&oldview, &nv);
157 >        copystruct(&nv, &ourview);
158 >        copystruct(&ourview, &oldview);
159 >        copystruct(&oldview, &nv);
160          newimage();
161   }
162  
# Line 607 | Line 607 | char  *s;
607          putc('\n', fp);
608          if (exposure != 1.0)
609                  fputexpos(exposure, fp);
610 +        if (dev->pixaspect != 1.0)
611 +                fputaspect(dev->pixaspect, fp);
612          putc('\n', fp);
613          fputresolu(YMAJOR|YDECR, hresolu, vresolu, fp);
614  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines