[gegl] diffraction-patterns: use new iterator api



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

    diffraction-patterns: use new iterator api

 operations/common-gpl3+/diffraction-patterns.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common-gpl3+/diffraction-patterns.c b/operations/common-gpl3+/diffraction-patterns.c
index 14b6efda5..73075e3d9 100644
--- a/operations/common-gpl3+/diffraction-patterns.c
+++ b/operations/common-gpl3+/diffraction-patterns.c
@@ -21,6 +21,7 @@
  *
  */
 
+#define GEGL_ITERATOR2_API
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <math.h>
@@ -355,10 +356,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->roi[0]);
+    c_process (operation, iter->items[0].data, &iter->items[0].roi);
 
   return  TRUE;
 }


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