[gegl] plasma: Perturb the alpha values too



commit 4aeac72a444021181afc734779a56f1b4df038c3
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Jun 30 14:26:36 2011 +0530

    plasma: Perturb the alpha values too

 operations/workshop/plasma.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/workshop/plasma.c b/operations/workshop/plasma.c
index eef1893..aa2b5a7 100644
--- a/operations/workshop/plasma.c
+++ b/operations/workshop/plasma.c
@@ -78,7 +78,7 @@ add_random (GRand  *gr,
   amount /= 2;
 
   if (amount > 0)
-    for (i = 0; i < floats_per_pixel-1; i++)
+    for (i = 0; i < floats_per_pixel; i++)
        {
           tmp = dest[i] + (gfloat) g_rand_double_range(gr, -amount, amount);
           dest[i] = CLAMP (tmp, 0, 1);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]