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

Comparing ray/src/hd/rhd_glx2.c (file contents):
Revision 3.1 by greg, Sat Feb 22 02:07:24 2003 UTC vs.
Revision 3.2 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 174 | Line 174 | char  *id;
174                          DisplayWidth(ourdisplay, ourscreen);
175          pheight = 2.0 * (double)DisplayHeightMM(ourdisplay, ourscreen) /
176                          DisplayHeight(ourdisplay, ourscreen);
177 <        copystruct(&odev.v, &stdview);
177 >        odev.v = stdview;
178          odev.v.type = VT_PER;
179                                          /* map the window */
180          setstereobuf(STEREO_BUFFER_LEFT);
# Line 250 | Line 250 | register VIEW  *nv;
250                          XResizeWindow(ourdisplay, gwind, odev.hres, odev.vres);
251                          dev_input();    /* get resize event */
252                  }
253 <                copystruct(&odev.v, nv);        /* setview() already called */
253 >                odev.v = *nv;   /* setview() already called */
254                  setglpersp(&odev.v);
255 <                copystruct(&vwright, nv);
255 >                vwright = *nv;
256                  d = eyesepdist / sqrt(nv->hn2);
257                  VSUM(vwright.vp, nv->vp, nv->hvec, d);
258                  /* setview(&vwright);   -- Unnecessary */
# Line 438 | Line 438 | int    dx, dy, mov, orb;
438          double  d;
439          register int    li;
440                                  /* start with old view */
441 <        copystruct(&nv, &odev.v);
441 >        nv = odev.v;
442                                  /* change view direction */
443          if (viewray(v1, odir, &odev.v,
444                          (dx+.5)/odev.hres, (dy+.5)/odev.vres) < -FTINY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines