[gimp] plug-ins: migrate ifs compose to new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: migrate ifs compose to new iterator api
- Date: Tue, 11 Sep 2018 00:06:30 +0000 (UTC)
commit 8edbc0d4912f7e9933b7463c9a75ed49298c04e2
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Sep 11 02:04:11 2018 +0200
plug-ins: migrate ifs compose to new iterator api
plug-ins/ifs-compose/ifs-compose.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/ifs-compose/ifs-compose.c b/plug-ins/ifs-compose/ifs-compose.c
index df3df2ed4c..372ef46f87 100644
--- a/plug-ins/ifs-compose/ifs-compose.c
+++ b/plug-ins/ifs-compose/ifs-compose.c
@@ -27,6 +27,7 @@
* 2. Figure out if we need multiple phases for supersampled brushes.
*/
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
@@ -1313,12 +1314,12 @@ ifs_compose (gint32 drawable_id)
GEGL_RECTANGLE (0, band_y,
width, band_height), 0,
format,
- GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE);
- roi = &iter->roi[0];
+ GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE, 1);
+ roi = &iter->items[0].roi;
while (gegl_buffer_iterator_next (iter))
{
- guchar *destrow = iter->data[0];
+ guchar *destrow = iter->items[0].data;
for (j = roi->y; j < (roi->y + roi->height); j++)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]