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. |
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); |