[gegl] noise-simplex: use new iterator api



commit 078b87d62f5a37103e7fb17239b37b0a55f1904f
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Sep 10 22:36:23 2018 +0200

    noise-simplex: use new iterator api

 operations/common/noise-simplex.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-simplex.c b/operations/common/noise-simplex.c
index 5cc9fcdeb..506c6bccf 100644
--- a/operations/common/noise-simplex.c
+++ b/operations/common/noise-simplex.c
@@ -23,6 +23,7 @@
  * Comments and improvements for this code are welcome.
  */
 
+#define GEGL_ITERATOR2_API
 #include "config.h"
 #include <glib/gi18n-lib.h>
 
@@ -305,10 +306,10 @@ process (GeglOperation       *operation,
     }
 
   iter = gegl_buffer_iterator_new (out_buf, roi, level, out_format,
-                                   GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE);
+                                   GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE, 1);
 
   while (gegl_buffer_iterator_next (iter))
-    c_process (operation, iter->data[0], iter->length, &iter->roi[0], level);
+    c_process (operation, iter->items[0].data, iter->length, &iter->items[0].roi, level);
 
   return  TRUE;
 }


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