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

Comparing ray/src/rt/rv3.c (file contents):
Revision 1.10 by greg, Tue Jan 9 09:07:33 1990 UTC vs.
Revision 1.12 by greg, Fri Jan 19 00:00:31 1990 UTC

# Line 167 | Line 167 | newimage()                             /* start a new image */
167                                                  /* compute resolution */
168          hresolu = dev->xsiz;
169          vresolu = dev->ysiz;
170 <        normaspect(&ourview, &dev->pixaspect, &hresolu, &vresolu);
170 >        normaspect(viewaspect(&ourview), &dev->pixaspect, &hresolu, &vresolu);
171          pframe.l = pframe.d = 0;
172          pframe.r = hresolu; pframe.u = vresolu;
173          pdepth = 0;
# Line 346 | Line 346 | register VIEW  *vp;
346          if ((err = setview(vp)) != NULL) {
347                  sprintf(errmsg, "view not set - %s", err);
348                  error(COMMAND, errmsg);
349 <        } else if (bcmp(vp, &ourview, sizeof(VIEW))) {
350 <                copyview(&oldview, &ourview);
351 <                copyview(&ourview, vp);
349 >        } else if (bcmp((char *)vp, (char *)&ourview, sizeof(VIEW))) {
350 >                copystruct(&oldview, &ourview);
351 >                copystruct(&ourview, vp);
352                  newimage();             /* newimage() calls with vp=&ourview! */
353          }
354   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines