summaryrefslogtreecommitdiff
path: root/3d.c
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-07-06 07:57:09 +0200
committerDanny Baumann <dannybaumann@web.de>2007-07-06 07:57:09 +0200
commit1c983928e1ea547861d7997ba797afde065fc6f7 (patch)
tree472a81c3e2fe2b73c65abeec920af3780b40b07c /3d.c
parentf67aaee2380855e08e7a975884b0bcd5cc3d8721 (diff)
download3d-1c983928e1ea547861d7997ba797afde065fc6f7.tar.gz
3d-1c983928e1ea547861d7997ba797afde065fc6f7.tar.bz2
Fix usage of wrong constants.
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 2384d8a..79cbe7d 100644
--- a/3d.c
+++ b/3d.c
@@ -231,7 +231,7 @@ static void tdPreparePaintScreen(CompScreen * screen, int msSinceLastPaint)
tds->currentDifferentResolutions = differentResolutions(screen);
if (tds->currentViewportNum > 2
- && (cs->moMode != Multiple || screen->nOutputDev == 1))
+ && (cs->moMode != CUBE_MOMODE_MULTI || screen->nOutputDev == 1))
tds->xMove =
1.0f / (tan (PI * (tds->currentViewportNum - 2.0f) / (2.0f * tds->currentViewportNum)));
else
@@ -996,7 +996,7 @@ static Bool tdInitScreen(CompPlugin * p, CompScreen * s)
tds->tdWindowExists = FALSE;
- tds->currentMoMode = Automatic;
+ tds->currentMoMode = CUBE_MOMODE_AUTO;
tds->currentViewportNum = s->hsize;
tds->currentScreenNum = s->nOutputDev;
tds->currentDifferentResolutions = differentResolutions(s);