summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 16:13:25 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-23 16:13:25 +0000
commit13b3b3163194c5b64edcbfdbba9b02854523d40e (patch)
treeeefbd6f72fd7dafe65df42d6d825e3d7ed7a4ea2 /beryl-plugins/src/cube.c
parentd1b0ce3f104840e5fca15bb0545eacf218210d7a (diff)
downloadmarex-dev-13b3b3163194c5b64edcbfdbba9b02854523d40e.tar.gz
marex-dev-13b3b3163194c5b64edcbfdbba9b02854523d40e.tar.bz2
Use IPCS_IsSet for zoomLevelAtom
git-svn-id: file:///beryl/trunk@3046 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index e5f5aff..567c0bf 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1961,7 +1961,7 @@ cubePaintTransformedScreen(CompScreen * s,
sa.zTranslate = -cs->invert * (0.5f / tanf(M_PI / size));
sa.zCamera -= cs->unfold * cs->unfoldDistance;
- sa.zCamera /= IPCS_GetFloat(IPCS_OBJECT(s),cs->zoomLevelAtom);
+ sa.zCamera /= IPCS_IsSet(IPCS_OBJECT(s),cs->zoomLevelAtom) ? IPCS_GetFloat(IPCS_OBJECT(s),cs->zoomLevelAtom) : 1;
sa.xRotate = sAttrib->xRotate * cs->invert;
if (sa.xRotate > 0.0f)