25 |
|
#define RAYQLEN 50000 /* max. rays to queue before flush */ |
26 |
|
#endif |
27 |
|
|
28 |
– |
#ifndef FEQ |
29 |
– |
#define FEQ(a,b) ((a)-(b) <= FTINY && (a)-(b) >= -FTINY) |
30 |
– |
#endif |
31 |
– |
|
28 |
|
#define GAMMA 2.2 /* default gamma correction */ |
29 |
|
|
30 |
|
#define FRAMESTATE(s) (((s)&(ShiftMask|ControlMask))==(ShiftMask|ControlMask)) |
260 |
|
return(0); |
261 |
|
} |
262 |
|
if (nv != &odev.v) { |
263 |
< |
if (!FEQ(nv->horiz,odev.v.horiz) || /* resize window? */ |
264 |
< |
!FEQ(nv->vert,odev.v.vert)) { |
263 |
> |
if (!FABSEQ(nv->horiz,odev.v.horiz) || /* resize window? */ |
264 |
> |
!FABSEQ(nv->vert,odev.v.vert)) { |
265 |
|
int dw = DisplayWidth(ourdisplay,ourscreen); |
266 |
|
int dh = DisplayHeight(ourdisplay,ourscreen); |
267 |
|
|