summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-12-19 12:32:27 +0100
committerDennis Kasprzyk <onestone@opencompositing.org>2007-12-19 12:32:27 +0100
commit0a27a16b3497c93c22117b703f355cb6b593de76 (patch)
tree0a8cfbe6eb457ba1589e6b617554a08d74f572f2
parent7e5074fe349f0a5b220f11791e34e0c0c010fb86 (diff)
downloadgears-0a27a16b3497c93c22117b703f355cb6b593de76.tar.gz
gears-0a27a16b3497c93c22117b703f355cb6b593de76.tar.bz2
Rotate scene correctly in inside cube mode.
-rw-r--r--gears.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gears.c b/gears.c
index d7e4d60..fa9238f 100644
--- a/gears.c
+++ b/gears.c
@@ -262,7 +262,8 @@ gearsPaintInside (CompScreen *s,
ScreenPaintAttrib sA = *sAttrib;
- sA.yRotate += (360.0f / size) * (cs->xRotations - (s->x * cs->nOutput));
+ sA.yRotate += cs->invert * (360.0f / size) *
+ (cs->xRotations - (s->x * cs->nOutput));
CompTransform mT = *transform;