diff options
author | Danny Baumann <dannybaumann@web.de> | 2007-10-24 19:25:43 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2007-10-24 19:25:43 +0200 |
commit | da2df3ca0f1267419740561fe61b422ba1d48cda (patch) | |
tree | e8505b372e2ff5c3f1d9da2b36deadf2dc75bee6 | |
parent | f45acdd0bd5dc4e8e76f7664255504011846871a (diff) | |
download | 3d-da2df3ca0f1267419740561fe61b422ba1d48cda.tar.gz 3d-da2df3ca0f1267419740561fe61b422ba1d48cda.tar.bz2 |
Track checkOrientation API changes.
-rw-r--r-- | 3d.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |