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.16 by greg, Tue Jan 16 11:30:13 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, 0, 0)) == -1) {
143                          sprintf(errmsg, "cannot open \"%s\"", buf);
# 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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines