summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Mikos <metastability@opencompositing.org>2007-12-20 01:12:42 +1030
committerDavid Mikos <metastability@opencompositing.org>2007-12-20 01:12:42 +1030
commitc08c7f48ff1fae6c924c204ab9214598fcb69f3a (patch)
tree7ba1074e64d60180707dc97687a503931a6f9dde
parent68ca9b80d88acbaf88f7ab306c09960bd2b6c859 (diff)
downloadsnowglobe-c08c7f48ff1fae6c924c204ab9214598fcb69f3a.tar.gz
snowglobe-c08c7f48ff1fae6c924c204ab9214598fcb69f3a.tar.bz2
Fix for inside cube (thanks to onestone).
-rw-r--r--snowglobe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/snowglobe.c b/snowglobe.c
index e9931c1..4730161 100644
--- a/snowglobe.c
+++ b/snowglobe.c
@@ -207,7 +207,8 @@ static void snowglobePaintInside (CompScreen *s,
if (snowglobeGetShowWater (s))
updateHeight (as->water);
- sA.yRotate += (360.0f / size) * (cs->xRotations - (s->x * cs->nOutput));
+ sA.yRotate += cs->invert * (360.0f / size) *
+ (cs->xRotations - (s->x * cs->nOutput));
(*s->applyScreenTransform) (s, &sA, output, &mT);