summaryrefslogtreecommitdiff
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
parent904a5025cbf01cca45d8035a7cb36ea7a06d8d79 (diff)
download3d-4ec6d0ccf105d2e3ad541addcb90148dd5e38043.tar.gz
3d-4ec6d0ccf105d2e3ad541addcb90148dd5e38043.tar.bz2
Make minimum cube size and maximum window spacing options.
-rw-r--r--3d.c4
-rw-r--r--3d.xml.in18
2 files changed, 14 insertions, 8 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)
diff --git a/3d.xml.in b/3d.xml.in
index 24c8a11..a85d42c 100644
--- a/3d.xml.in
+++ b/3d.xml.in
@@ -20,13 +20,19 @@
<_long>Windows that should be handled by 3D</_long>
<default>Toolbar | Utility | Dialog | Normal | Unknown</default>
</option>
- <option name="space" type="float">
+ <option name="min_cube_size" type="int">
+ <_short>Minimum Cube Size</_short>
+ <_long>Minimum cube size (in percent).</_long>
+ <default>60</default>
+ <min>10</min>
+ <max>100</max>
+ </option>
+ <option name="max_window_space" type="int">
<_short>Window Space</_short>
- <_long>Change the amount of space between the windows.</_long>
- <default>0.02</default>
- <min>0.0</min>
- <max>1.0</max>
- <precision>0.001</precision>
+ <_long>Change the amount of space between the windows (in percent of the cube size).</_long>
+ <default>10</default>
+ <min>0</min>
+ <max>50</max>
</option>
<option name="speed" type="float">
<_short>Animation Speed</_short>