summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-19 20:37:02 +0900
committerJoel Bosveld <joel@JOEL-UBUNTU.(none)>2007-12-19 20:37:02 +0900
commit4d8a21289cd903d62b7d47c022a4e2775fa498b1 (patch)
tree57bfe9ebae62a96d2440eb30b22338e4492fae7b
parent5aa82ac4770779304988e2f464fcb19b2b0a81ba (diff)
downloadphotowheel-4d8a21289cd903d62b7d47c022a4e2775fa498b1.tar.gz
photowheel-4d8a21289cd903d62b7d47c022a4e2775fa498b1.tar.bz2
Rotate scene correctly in inside cube mode (thanks onestone)
-rw-r--r--photo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/photo.c b/photo.c
index 77e7135..49bcab0 100644
--- a/photo.c
+++ b/photo.c
@@ -285,7 +285,8 @@ photoPaintInside (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;