summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-06-26 22:56:41 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-06-26 22:56:41 +0200
commitb1b8274faeaab3e473bdc636794e438f56bb21b2 (patch)
tree04f394010332682e7744f120669bc174f627b1a3
parent36ac4cc87cec0b0cd40f2597bd3e82f51f99ae59 (diff)
download3d-b1b8274faeaab3e473bdc636794e438f56bb21b2.tar.gz
3d-b1b8274faeaab3e473bdc636794e438f56bb21b2.tar.bz2
Fixed inside cube mode.
-rw-r--r--3d.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/3d.c b/3d.c
index c6e6644..52cd9ed 100644
--- a/3d.c
+++ b/3d.c
@@ -747,7 +747,7 @@ tdPaintTransformedOutput(CompScreen * s,
CompWindow* now;
CompWindow* firstFTB = NULL;
- CompWindow* lastBTF = s->reverseWindows;
+ CompWindow* lastBTF = NULL;
tds->reorderWindowPainting = FALSE;
@@ -764,9 +764,9 @@ tdPaintTransformedOutput(CompScreen * s,
if (!firstFTB)
{
- float vPoints[3][3] = { { -0.5, 0.0, cs->distance + tdw->currentZ},
- { 0.0, 0.5, cs->distance + tdw->currentZ},
- { 0.0, 0.0, cs->distance + tdw->currentZ}};
+ float vPoints[3][3] = { { -0.5, 0.0, (cs->invert * cs->distance) + tdw->currentZ},
+ { 0.0, 0.5, (cs->invert * cs->distance) + tdw->currentZ},
+ { 0.0, 0.0, (cs->invert * cs->distance) + tdw->currentZ}};
tdw->ftb = cs->checkOrientation (s, sAttrib, transform, output, vPoints);
@@ -1086,7 +1086,7 @@ static Bool tdInitScreen(CompPlugin * p, CompScreen * s)
tds->xMove = 0.0f;
tds->firstFTB = NULL;
- tds->lastBTF = s->reverseWindows;
+ tds->lastBTF = NULL;
s->privates[tdd->screenPrivateIndex].ptr = tds;