--- ray/src/rt/rv3.c 2003/02/25 02:47:23 2.11 +++ ray/src/rt/rv3.c 2003/07/21 22:30:19 2.13 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rv3.c,v 2.11 2003/02/25 02:47:23 greg Exp $"; +static const char RCSid[] = "$Id: rv3.c,v 2.13 2003/07/21 22:30:19 schorsch Exp $"; #endif /* * rv3.c - miscellaneous routines for rview. @@ -9,10 +9,10 @@ static const char RCSid[] = "$Id: rv3.c,v 2.11 2003/02 #include "copyright.h" -#include "ray.h" +#include +#include "ray.h" #include "rpaint.h" - #include "random.h" #ifndef WFLUSH @@ -371,9 +371,9 @@ register VIEW *vp; if ((err = setview(vp)) != NULL) { sprintf(errmsg, "view not set - %s", err); error(COMMAND, errmsg); - } else if (bcmp((char *)vp, (char *)&ourview, sizeof(VIEW))) { - copystruct(&oldview, &ourview); - copystruct(&ourview, vp); + } else if (memcmp((char *)vp, (char *)&ourview, sizeof(VIEW))) { + oldview = ourview; + ourview = *vp; newimage(); } }