22 |
|
|
23 |
|
#include "standard.h" |
24 |
|
|
25 |
– |
#include <sys/types.h> |
25 |
|
#include <GL/glx.h> |
26 |
|
#include <GL/glu.h> |
27 |
|
#ifdef STEREO |
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; |
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 |
|
|