[gegl] noise-cell: use new iterator api
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] noise-cell: use new iterator api
- Date: Wed, 12 Sep 2018 11:55:45 +0000 (UTC)
commit ab6ada5f225080bfdb1f783dc1eaecf2cbae7725
Author: Øyvind Kolås <pippin gimp org>
Date: Mon Sep 10 22:36:23 2018 +0200
noise-cell: use new iterator api
operations/common/noise-cell.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/noise-cell.c b/operations/common/noise-cell.c
index 85175ebc5..e80480fb0 100644
--- a/operations/common/noise-cell.c
+++ b/operations/common/noise-cell.c
@@ -26,6 +26,7 @@
* Comments and improvements for this code are welcome.
*/
+#define GEGL_ITERATOR2_API
#include "config.h"
#include <glib/gi18n-lib.h>
@@ -405,10 +406,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->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]