168 |
|
dev_input(); /* sets size and view angles */ |
169 |
|
/* allocate our leaf pile */ |
170 |
|
if (!qtAllocLeaves(DisplayWidth(ourdisplay,ourscreen) * |
171 |
< |
DisplayHeight(ourdisplay,ourscreen) / |
172 |
< |
(qtMinNodesiz*qtMinNodesiz))) |
171 |
> |
DisplayHeight(ourdisplay,ourscreen) * 3 / |
172 |
> |
(qtMinNodesiz*qtMinNodesiz*2))) |
173 |
|
error(SYSTEM, "insufficient memory for value storage"); |
174 |
|
odev.name = id; |
175 |
|
odev.ifd = ConnectionNumber(ourdisplay); |
278 |
|
{ |
279 |
|
register int ci, j; |
280 |
|
double apexh, basez; |
281 |
+ |
/* is window mapped? */ |
282 |
+ |
if (!mapped) |
283 |
+ |
return; |
284 |
|
/* compute apex height (0. to 1.) */ |
285 |
|
if (ip[2] > 1e6) |
286 |
|
apexh = 1. - 1./DEPTHFACT; |