100 |
|
XSizeHints oursizhints; |
101 |
|
/* set quadtree globals */ |
102 |
|
qtMinNodesiz = 3; |
103 |
+ |
qtDepthEps = 0.07; |
104 |
|
/* open display server */ |
105 |
|
ourdisplay = XOpenDisplay(NULL); |
106 |
|
if (ourdisplay == NULL) |
163 |
|
XMapWindow(ourdisplay, gwind); |
164 |
|
dev_input(); /* sets size and view angles */ |
165 |
|
/* allocate our leaf pile */ |
166 |
< |
if (!qtAllocLeaves(2 * DisplayWidth(ourdisplay,ourscreen) * |
166 |
> |
if (!qtAllocLeaves(DisplayWidth(ourdisplay,ourscreen) * |
167 |
|
DisplayHeight(ourdisplay,ourscreen) / |
168 |
|
(qtMinNodesiz*qtMinNodesiz))) |
169 |
|
error(SYSTEM, "insufficient memory for value storage"); |