summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-10-24 19:25:43 +0200
committerDanny Baumann <dannybaumann@web.de>2007-10-24 19:25:43 +0200
commitda2df3ca0f1267419740561fe61b422ba1d48cda (patch)
treee8505b372e2ff5c3f1d9da2b36deadf2dc75bee6
parentf45acdd0bd5dc4e8e76f7664255504011846871a (diff)
download3d-da2df3ca0f1267419740561fe61b422ba1d48cda.tar.gz
3d-da2df3ca0f1267419740561fe61b422ba1d48cda.tar.bz2
Track checkOrientation API changes.
-rw-r--r--3d.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/3d.c b/3d.c
index 51c4969..18191dd 100644
--- a/3d.c
+++ b/3d.c
@@ -510,10 +510,11 @@ tdPostPaintViewport (CompScreen *s,
CompWindow *w;
CompWalker walk;
float wDepth;
+ float pointZ = cs->invert * cs->distance;
- float vPoints[3][3] = {{ -0.5, 0.0, (cs->invert * cs->distance)},
- { 0.0, 0.5, (cs->invert * cs->distance)},
- { 0.0, 0.0, (cs->invert * cs->distance)}};
+ CompVector vPoints[3] = { { .v = { -0.5, 0.0, pointZ, 1.0 } },
+ { .v = { 0.0, 0.5, pointZ, 1.0 } },
+ { .v = { 0.0, 0.0, pointZ, 1.0 } } };
wDepth = -MIN((tdGetWidth (s)) / 30, (1.0 - tds->basicScale) /
tds->maxDepth);