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

Comparing ray/src/hd/rhd_ogl.c (file contents):
Revision 3.16 by gwlarson, Mon Mar 8 17:31:49 1999 UTC vs.
Revision 3.18 by gwlarson, Mon Jul 19 20:15:16 1999 UTC

# Line 867 | Line 867 | setglpersp()                   /* set perspective view in GL */
867                  dev_zmin = odev.v.vfore;
868          if (odev.v.vaft > FTINY)
869                  dev_zmax = odev.v.vaft;
870 <        if (dev_zmin < dev_zmax/100.)
871 <                dev_zmin = dev_zmax/100.;
870 >        if (dev_zmin*500. < dev_zmax)
871 >                dev_zmax = dev_zmin*500.;
872          setzrat();
873          xmax = dev_zmin * tan(PI/180./2. * odev.v.horiz);
874          xmin = -xmax;
# Line 944 | Line 944 | wipeclean()                    /* prepare for redraw */
944                  viewflags &= ~VWCHANGE;         /* change noted */
945          } else if (viewflags & VWSTEADY)
946                  odRedrawAll();
947 <        setglpersp(&odev.v);            /* reset view & clipping planes */
947 >        setglpersp();                   /* reset view & clipping planes */
948   }
949  
950  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines