[gimp/gimp-2-10] app: migrate ink paint core to iterator api



commit 6a40b6c75e9cd2f4b2166066f39604ced4fe112e
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Sep 11 01:34:17 2018 +0200

    app: migrate ink paint core to iterator api
    
    (cherry picked from commit ea9c5e6a4908cc39d3645cf6012c2773ee894c19)

 app/paint/gimpink.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/paint/gimpink.c b/app/paint/gimpink.c
index 195dacb13f..dfeed67b30 100644
--- a/app/paint/gimpink.c
+++ b/app/paint/gimpink.c
@@ -20,6 +20,7 @@
 #include <string.h>
 
 #include <gdk-pixbuf/gdk-pixbuf.h>
+#define GEGL_ITERATOR2_API
 #include <gegl.h>
 
 #include "libgimpmath/gimpmath.h"
@@ -748,12 +749,12 @@ render_blob (GeglBuffer    *buffer,
   GeglRectangle      *roi;
 
   iter = gegl_buffer_iterator_new (buffer, rect, 0, babl_format ("Y float"),
-                                   GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
-  roi = &iter->roi[0];
+                                   GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE, 1);
+  roi = &iter->items[0].roi;
 
   while (gegl_buffer_iterator_next (iter))
     {
-      gfloat *d = iter->data[0];
+      gfloat *d = iter->items[0].data;
       gint    h = roi->height;
       gint    y;
 


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