summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-08-28 18:46:05 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-08-28 18:46:05 +0200
commit9f2ffd4eb652fd30855d38b27c7c6fa29dfe81a9 (patch)
treef8f96a77d6829ef4334de0822ab090a873af6c93
parent92796d43c06a0d9d24426f607b42a7ba6f449aa6 (diff)
download3d-9f2ffd4eb652fd30855d38b27c7c6fa29dfe81a9.tar.gz
3d-9f2ffd4eb652fd30855d38b27c7c6fa29dfe81a9.tar.bz2
Fixed inside cube mode.
-rw-r--r--3d.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/3d.c b/3d.c
index 11756f1..809acde 100644
--- a/3d.c
+++ b/3d.c
@@ -172,11 +172,17 @@ tdPreparePaintScreen (CompScreen *s,
}
minScale = MAX (minScale, 1.0 - (tds->maxDepth * maxDiv));
- tds->basicScale = MAX (minScale, tds->basicScale - amount);
+ if (cs->invert == 1)
+ tds->basicScale = MAX (minScale, tds->basicScale - amount);
+ else
+ tds->basicScale = MIN (2 - minScale, tds->basicScale + amount);
}
else
{
- tds->basicScale = MIN (1.0, tds->basicScale + amount);
+ if (cs->invert == 1)
+ tds->basicScale = MIN (1.0, tds->basicScale + amount);
+ else
+ tds->basicScale = MAX (1.0, tds->basicScale - amount);
}
UNWRAP (tds, s, preparePaintScreen);
@@ -465,7 +471,7 @@ tdPaintWindow (CompWindow *w,
else
#endif
- if (tdw->depth != 0.0f && !tds->test && tds->active)
+ if (tdw->depth != 0.0f && !tds->test && tds->basicScale != 1.0)
mask |= PAINT_WINDOW_NO_CORE_INSTANCE_MASK;
if (tds->test)