Commit ee48ec68 authored by Øyvind "pippin" Kolås's avatar Øyvind "pippin" Kolås

plug-ins: migrate gradient-map to new iterator api

parent 4165a315
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
#define GEGL_ITERATOR2_API
#include "config.h" #include "config.h"
#include <string.h> #include <string.h>
...@@ -265,7 +266,7 @@ map (GeglBuffer *buffer, ...@@ -265,7 +266,7 @@ map (GeglBuffer *buffer,
} }
gi = gegl_buffer_iterator_new (shadow_buffer, NULL, 0, format_shadow, gi = gegl_buffer_iterator_new (shadow_buffer, NULL, 0, format_shadow,
GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE); GEGL_ACCESS_WRITE, GEGL_ABYSS_NONE, 2);
index_iter = gegl_buffer_iterator_add (gi, buffer, NULL, index_iter = gegl_buffer_iterator_add (gi, buffer, NULL,
0, format_buffer, 0, format_buffer,
...@@ -277,8 +278,8 @@ map (GeglBuffer *buffer, ...@@ -277,8 +278,8 @@ map (GeglBuffer *buffer,
gfloat *data; gfloat *data;
gfloat *data2; gfloat *data2;
data = (gfloat*) gi->data[0]; data = (gfloat*) gi->items[0].data;
data2 = (gfloat*) gi->data[index_iter]; data2 = (gfloat*) gi->items[index_iter].data;
if (interpolate) if (interpolate)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment