summaryrefslogtreecommitdiff
path: root/3d.c
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-09-23 14:08:19 +0200
committerDanny Baumann <dannybaumann@web.de>2007-09-23 14:08:19 +0200
commit4ec6d0ccf105d2e3ad541addcb90148dd5e38043 (patch)
tree440025c0ad56ef836405c442ed1a6a6ae1b4e03e /3d.c
parent904a5025cbf01cca45d8035a7cb36ea7a06d8d79 (diff)
download3d-4ec6d0ccf105d2e3ad541addcb90148dd5e38043.tar.gz
3d-4ec6d0ccf105d2e3ad541addcb90148dd5e38043.tar.bz2
Make minimum cube size and maximum window spacing options.
Diffstat (limited to '3d.c')
-rw-r--r--3d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/3d.c b/3d.c
index 7296d25..4c782ec 100644
--- a/3d.c
+++ b/3d.c
@@ -149,8 +149,8 @@ tdPreparePaintScreen (CompScreen *s,
amount = ((float)msSinceLastPaint * tdGetSpeed (s) / 1000.0);
if (tds->active)
{
- float maxDiv = 0.1; // should be a option;
- float minScale = 0.5; // should be a option;
+ float maxDiv = (float) tdGetMaxWindowSpace (s) / 100;
+ float minScale = (float) tdGetMinCubeSize (s) / 100;
tds->maxDepth = 0;
for (w = s->windows; w; w = w->next)