[gegl] checkerboard: use new iterator api



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

    checkerboard: use new iterator api

 operations/common/checkerboard.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/checkerboard.c b/operations/common/checkerboard.c
index f97eb79ab..3d2545c0d 100644
--- a/operations/common/checkerboard.c
+++ b/operations/common/checkerboard.c
@@ -16,6 +16,8 @@
  * Copyright 2006 Øyvind Kolås <pippin gimp org>
  */
 
+#define GEGL_ITERATOR2_API
+
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <stdlib.h>
@@ -319,10 +321,10 @@ operation_source_process (GeglOperation       *operation,
         }
 
       iter = gegl_buffer_iterator_new (output, result, level, out_format,
-                                       GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE);
+                                       GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE, 1);
 
       while (gegl_buffer_iterator_next (iter))
-        checkerboard_process (operation, iter->data[0], iter->length, &iter->roi[0], level);
+        checkerboard_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]