[beryl-commits] Animation plugin: Changes to 'master' (41b7ec6b328a0850fd27b54739a23b99b898b3ce)

cornelius at server.beryl-project.org cornelius at server.beryl-project.org
Fri Jun 8 05:00:04 CEST 2007


New commits:
commit 41b7ec6b328a0850fd27b54739a23b99b898b3ce
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Thu Jun 7 22:58:39 2007 -0400

    Fix Explode.

commit 1304861a75627bc7d3f73f83460f8a6fc631101b
Author: Erkin Bahceci <erkinbah at gmail.com>
Date:   Thu Jun 7 22:56:48 2007 -0400

    Correct indentation.


 animation.c |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)


Modified: compcomm/plugins/animation/animation.c
===================================================================
--- compcomm/plugins/animation/animation.c
+++ compcomm/plugins/animation/animation.c
@@ -769,22 +769,22 @@ animStoreRandomEffectList (CompOptionValue *value,
 
 	for (i = 0; i < nItems; i++, effect++)
 	{
-	    if ((effect->i < 0) || (effect->i >= numAllowedEffects))
-		continue;
+		if ((effect->i < 0) || (effect->i >= numAllowedEffects))
+			continue;
 
-	    listEffect = allowedEffects[effect->i];
-		
-	    for (j = 0; j < count; j++)
-	    {
-		if (targetList[j] == listEffect)
-		    break;
-	    }
+		listEffect = allowedEffects[effect->i];
 
-	    if (j < count)
-		continue;
+		for (j = 0; j < count; j++)
+		{
+			if (targetList[j] == listEffect)
+				break;
+		}
 
-	    targetList[count] = listEffect;
-	    count++;
+		if (j < count)
+			continue;
+
+		targetList[count] = listEffect;
+		count++;
 	}
 
 	*targetCount = count;
@@ -5007,12 +5007,14 @@ static void fxExplode3DInit(CompScreen * s, CompWindow * w)
 			as->opt[ANIM_SCREEN_OPTION_EXPLODE3D_GRIDSIZE_Y].value.i,
 			as->opt[ANIM_SCREEN_OPTION_EXPLODE3D_THICKNESS].value.f))
 			return;
+		break;
 	case PolygonTessHex:
 		if (!tessellateIntoHexagons(w, 
 			as->opt[ANIM_SCREEN_OPTION_EXPLODE3D_GRIDSIZE_X].value.i,
 			as->opt[ANIM_SCREEN_OPTION_EXPLODE3D_GRIDSIZE_Y].value.i,
 			as->opt[ANIM_SCREEN_OPTION_EXPLODE3D_THICKNESS].value.f))
 			return;
+		break;
 	default:
 		return;
 	}



More information about the commits mailing list