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

plug-ins: migrate psd plug-ins to new iterator api

parent ee48ec68
......@@ -18,6 +18,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
......@@ -1872,11 +1873,11 @@ add_merged_image (gint32 image_id,
iter = gegl_buffer_iterator_new (buffer, NULL, 0,
babl_format ("R'G'B'A float"),
GEGL_ACCESS_READWRITE,
GEGL_ABYSS_NONE);
GEGL_ABYSS_NONE, 1);
while (gegl_buffer_iterator_next (iter))
{
gfloat *data = iter->data[0];
gfloat *data = iter->items[0].data;
for (i = 0; i < iter->length; i++)
{
......
......@@ -63,6 +63,7 @@
* BUGS:
*/
#define GEGL_ITERATOR2_API
#include "config.h"
#include <errno.h>
......@@ -1467,11 +1468,11 @@ create_merged_image (gint32 image_id)
GeglBufferIterator *iter;
iter = gegl_buffer_iterator_new (buffer, NULL, 0, format,
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE);
GEGL_ACCESS_READWRITE, GEGL_ABYSS_NONE, 1);
while (gegl_buffer_iterator_next (iter))
{
guchar *d = iter->data[0];
guchar *d = iter->items[0].data;
gint i;
for (i = 0; i < iter->length; i++)
......
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