[gegl] plasma: Compute random values for alpha too
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] plasma: Compute random values for alpha too
- Date: Thu, 30 Jun 2011 09:43:06 +0000 (UTC)
commit 6e71a8ed6f252a1172a93abd81ff2d352345d3e8
Author: Mukund Sivaraman <muks banu com>
Date: Thu Jun 30 14:25:23 2011 +0530
plasma: Compute random values for alpha too
operations/workshop/plasma.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/operations/workshop/plasma.c b/operations/workshop/plasma.c
index e1595db..0a8a7c7 100644
--- a/operations/workshop/plasma.c
+++ b/operations/workshop/plasma.c
@@ -63,10 +63,8 @@ random_rgba (GRand *gr,
gfloat *dest)
{
gint i;
- for (i = 0; i < floats_per_pixel - 1; i++)
+ for (i = 0; i < floats_per_pixel; i++)
dest[i] = (gfloat) g_rand_double_range (gr, 0, 1);
-
- dest[i] = 1;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]