[gegl] noise-solid: use new iterator api



commit 2b92ff7fec6f3f5b68ce02becb1819639db5a4d4
Author: Øyvind Kolås <pippin gimp org>
Date:   Mon Sep 10 16:49:05 2018 +0200

    noise-solid: use new iterator api

 operations/common-gpl3+/noise-solid.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/noise-solid.c b/operations/common-gpl3+/noise-solid.c
index 6bcccfe3c..917e402a4 100644
--- a/operations/common-gpl3+/noise-solid.c
+++ b/operations/common-gpl3+/noise-solid.c
@@ -28,6 +28,7 @@
  *
  */
 
+#define GEGL_ITERATOR2_API
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <math.h>
@@ -309,10 +310,10 @@ process (GeglOperation       *operation,
                                                           "output");
 
   iter = gegl_buffer_iterator_new (out_buf, roi, level, 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]