--- ray/src/rt/rv3.c 1990/01/09 09:07:33 1.10 +++ ray/src/rt/rv3.c 1990/01/19 00:00:31 1.12 @@ -167,7 +167,7 @@ newimage() /* start a new image */ /* compute resolution */ hresolu = dev->xsiz; vresolu = dev->ysiz; - normaspect(&ourview, &dev->pixaspect, &hresolu, &vresolu); + normaspect(viewaspect(&ourview), &dev->pixaspect, &hresolu, &vresolu); pframe.l = pframe.d = 0; pframe.r = hresolu; pframe.u = vresolu; pdepth = 0; @@ -346,9 +346,9 @@ register VIEW *vp; if ((err = setview(vp)) != NULL) { sprintf(errmsg, "view not set - %s", err); error(COMMAND, errmsg); - } else if (bcmp(vp, &ourview, sizeof(VIEW))) { - copyview(&oldview, &ourview); - copyview(&ourview, vp); + } else if (bcmp((char *)vp, (char *)&ourview, sizeof(VIEW))) { + copystruct(&oldview, &ourview); + copystruct(&ourview, vp); newimage(); /* newimage() calls with vp=&ourview! */ } }