49 |
|
#define BORWIDTH 5 /* border width */ |
50 |
|
#endif |
51 |
|
|
52 |
– |
#ifndef FEQ |
53 |
– |
#define FEQ(a,b) ((a)-(b) <= FTINY && (a)-(b) >= -FTINY) |
54 |
– |
#endif |
55 |
– |
|
52 |
|
#define VWHEADLOCK 01 /* head position is locked flag */ |
53 |
|
#define VWPERSP 02 /* perspective view is set */ |
54 |
|
#define VWORTHO 04 /* orthographic view is set */ |
333 |
|
} |
334 |
|
if (nv != &odev.v) { |
335 |
|
/* resize window? */ |
336 |
< |
if (!FEQ(nv->horiz,odev.v.horiz) || |
337 |
< |
!FEQ(nv->vert,odev.v.vert)) { |
336 |
> |
if (!FABSEQ(nv->horiz,odev.v.horiz) || |
337 |
> |
!FABSEQ(nv->vert,odev.v.vert)) { |
338 |
|
int dw = DisplayWidth(ourdisplay,ourscreen); |
339 |
|
int dh = DisplayHeight(ourdisplay,ourscreen); |
340 |
|
|