summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/blurfx.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/blurfx.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/blurfx.c')
-rw-r--r--beryl-plugins/src/blurfx.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/beryl-plugins/src/blurfx.c b/beryl-plugins/src/blurfx.c
index 65b6ddb..04b1716 100644
--- a/beryl-plugins/src/blurfx.c
+++ b/beryl-plugins/src/blurfx.c
@@ -1294,9 +1294,10 @@ blurfxPaintScreen(CompScreen * s, const ScreenPaintAttrib * sa,
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
bs->mb_alpha =
(bs->mb_timer / 500.0) * bs->mb_alpha + (1.0 -
- (bs->
- mb_timer
- / 500.0)) * 0.5;
+ (bs->
+ mb_timer
+ / 500.0)) *
+ 0.5;
bs->mb_alpha = MIN(1.0, bs->mb_alpha);
glColor4f(1, 1, 1, (bs->mb_update) ? 1.0 : bs->mb_alpha);
enableBlurfxTexture(&bs->backTex, COMP_TEXTURE_FILTER_FAST);
@@ -1356,11 +1357,11 @@ blurfxPaintScreen(CompScreen * s, const ScreenPaintAttrib * sa,
glPopMatrix();
glViewport(s->outputDev[bs->output].region.extents.
- x1,
- s->height -
- s->outputDev[bs->output].region.extents.
- y2, s->outputDev[bs->output].width,
- s->outputDev[bs->output].height);
+ x1,
+ s->height -
+ s->outputDev[bs->output].region.extents.
+ y2, s->outputDev[bs->output].width,
+ s->outputDev[bs->output].height);
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
glTexEnvf(GL_TEXTURE_ENV, GL_COMBINE_RGB, GL_MODULATE);
@@ -1398,8 +1399,10 @@ blurfxPaintScreen(CompScreen * s, const ScreenPaintAttrib * sa,
stride = 4 * sizeof(GLfloat);
genGeometry(&bs->vertArray, mat, 0,
&s->outputDev[bs->output].region);
- glVertexPointer(2, GL_FLOAT, stride, bs->vertArray.vertices + 2);
- glTexCoordPointer(2, GL_FLOAT, stride, bs->vertArray.vertices);
+ glVertexPointer(2, GL_FLOAT, stride,
+ bs->vertArray.vertices + 2);
+ glTexCoordPointer(2, GL_FLOAT, stride,
+ bs->vertArray.vertices);
glColor4f(1.0, 1.0, 1.0, 1.0);
enableBlurfxTexture(&bs->backTex, COMP_TEXTURE_FILTER_FAST);
@@ -4453,9 +4456,9 @@ static Bool bindFbo(CompScreen * s, BlurTexture tex)
glRasterPos2f(0, 0);
s->rasterX = s->rasterY = 0;
glViewport(s->outputDev[bs->output].region.extents.x1,
- s->height - s->outputDev[bs->output].region.extents.y2,
- s->outputDev[bs->output].width,
- s->outputDev[bs->output].height);
+ s->height - s->outputDev[bs->output].region.extents.y2,
+ s->outputDev[bs->output].width,
+ s->outputDev[bs->output].height);
glMatrixMode(GL_PROJECTION);
glPopMatrix();