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

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.28 by gwlarson, Thu Jun 10 15:22:21 1999 UTC vs.
Revision 3.29 by greg, Sat Feb 22 02:07:24 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1999 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * OpenGL GLX driver for holodeck display.
6   * Based on old GLX driver using cones.
# Line 737 | Line 734 | register VIEW  *vp;
734                  dev_zmin = odev.v.vfore;
735          if (odev.v.vaft > FTINY)
736                  dev_zmax = odev.v.vaft;
737 <        if (dev_zmin < dev_zmax/500.)
738 <                dev_zmin = dev_zmax/500.;
737 >        if (dev_zmin*500. < dev_zmax)
738 >                dev_zmax = dev_zmin*500.;
739          xmax = dev_zmin * tan(PI/180./2. * odev.v.horiz);
740          xmin = -xmax;
741          d = odev.v.hoff * (xmax - xmin);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines