summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/cube.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 10:58:19 +0000
commit045ba4cb32fa3e1c16216ff8809bd40db9c2ed77 (patch)
treea5f6f2d27646d56bdcf42ddc15c05ce8da8c25e4 /beryl-plugins/src/cube.c
parentcf2abe773b6536e55c6d76d5444fac69ccf70773 (diff)
downloadmarex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.gz
marex-dev-045ba4cb32fa3e1c16216ff8809bd40db9c2ed77.tar.bz2
indent.sh on plugins
git-svn-id: file:///beryl/trunk@3081 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/cube.c')
-rw-r--r--beryl-plugins/src/cube.c33
1 files changed, 23 insertions, 10 deletions
diff --git a/beryl-plugins/src/cube.c b/beryl-plugins/src/cube.c
index 805bd10..89ae7d4 100644
--- a/beryl-plugins/src/cube.c
+++ b/beryl-plugins/src/cube.c
@@ -1205,7 +1205,9 @@ static void cubeScreenInitOptions(CubeScreen * cs)
o->subGroup = N_("");
o->displayHints = "file;image";
o->shortDesc = N_("Skydome Image");
- o->longDesc = N_("Image to use as texture for the skydome. Dimensions must be a power of two");
+ o->longDesc =
+ N_
+ ("Image to use as texture for the skydome. Dimensions must be a power of two");
o->type = CompOptionTypeString;
o->value.s = strdup("");
o->rest.s.string = 0;
@@ -1964,7 +1966,10 @@ cubePaintTransformedScreen(CompScreen * s,
sa.zTranslate = -cs->invert * (0.5f / tanf(M_PI / size));
sa.zCamera -= cs->unfold * cs->unfoldDistance;
- sa.zCamera /= IPCS_IsSet(IPCS_OBJECT(s),cs->zoomLevelAtom) ? IPCS_GetFloat(IPCS_OBJECT(s),cs->zoomLevelAtom) : 1;
+ 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)
@@ -2843,7 +2848,8 @@ static Bool cubeInitScreen(CompPlugin * p, CompScreen * s)
cs->manualAtom =
IPCS_GetAtom(IPCS_OBJECT(s), IPCS_BOOL, "MOUSE_INITIATED_ROTATE",
TRUE);
- cs->zoomLevelAtom = IPCS_GetAtom(IPCS_OBJECT(s),IPCS_FLOAT,"ZOOM_LEVEL",TRUE);
+ cs->zoomLevelAtom =
+ IPCS_GetAtom(IPCS_OBJECT(s), IPCS_FLOAT, "ZOOM_LEVEL", TRUE);
cs->paintingCaps = FALSE;
IPCS_SetVPtr(IPCS_OBJECT(s), cs->paintingCapsAtom,
(void *)&cs->paintingCaps);
@@ -2960,13 +2966,20 @@ static void cubeFini(CompPlugin * p)
}
CompPluginDep cubeDeps[] = {
- {CompPluginRuleAfter, "animation"},
- {CompPluginRuleAfter, "decoration"},
- {CompPluginRuleAfter, "fade"},
- {CompPluginRuleAfter, "wobbly"},
- {CompPluginRuleAfter, "inputzoom"},
- {CompPluginRuleAfter, "3d"},
- {CompPluginRuleAfterCategory, "imageformat"},
+ {CompPluginRuleAfter, "animation"}
+ ,
+ {CompPluginRuleAfter, "decoration"}
+ ,
+ {CompPluginRuleAfter, "fade"}
+ ,
+ {CompPluginRuleAfter, "wobbly"}
+ ,
+ {CompPluginRuleAfter, "inputzoom"}
+ ,
+ {CompPluginRuleAfter, "3d"}
+ ,
+ {CompPluginRuleAfterCategory, "imageformat"}
+ ,
};
CompPluginFeature cubeFeatures[] = {