[gegl] fractal-trace: Change enum value



commit 0ecc6c1d38dec92f0875c2c11e7742b3547b4bcc
Author: Mukund Sivaraman <muks banu com>
Date:   Thu Jun 30 21:02:05 2011 +0530

    fractal-trace: Change enum value

 operations/workshop/fractal-trace.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/operations/workshop/fractal-trace.c b/operations/workshop/fractal-trace.c
index dc61916..90bf1aa 100644
--- a/operations/workshop/fractal-trace.c
+++ b/operations/workshop/fractal-trace.c
@@ -63,7 +63,7 @@ enum OutsideType
 
 enum FractalType
 {
-  FRACTAL_TYPE_MANDEL,
+  FRACTAL_TYPE_MANDELBROT,
   FRACTAL_TYPE_JULIA
 };
 
@@ -141,7 +141,7 @@ fractaltrace (GeglBuffer          *input,
         case FRACTAL_TYPE_JULIA:
           julia (cx, cy, o->JX, o->JY, &px, &py, o->depth, escape_radius);
           break;
-        case FRACTAL_TYPE_MANDEL:
+        case FRACTAL_TYPE_MANDELBROT:
           julia (cx, cy, cx, cy, &px, &py, o->depth, escape_radius);
           break;
         default:
@@ -228,13 +228,12 @@ process (GeglOperation       *operation,
   gfloat           *dst_buf;
   gint              y;
 
-  frT = FRACTAL_TYPE_MANDEL;
-    frT = FRACTAL_TYPE_MANDEL;
+  frT = FRACTAL_TYPE_MANDELBROT;
   if (!strcmp (o->fractal, "mandelbrot"))
+    frT = FRACTAL_TYPE_MANDELBROT;
   else if (!strcmp(o->fractal, "julia"))
     frT = FRACTAL_TYPE_JULIA;
 
-
   id = OUTSIDE_TYPE_WRAP; /*wrap is default*/
   if (!strcmp(o->background,"wrap"))
       id = OUTSIDE_TYPE_WRAP;



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