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

app: histogram migrated to new buffer iterator

parent 972f2323
......@@ -17,6 +17,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#define GEGL_ITERATOR2_API
#include "config.h"
#include <string.h>
......@@ -984,7 +986,7 @@ gimp_histogram_calculate_area (const GeglRectangle *area,
iter = gegl_buffer_iterator_new (context->buffer, area, 0,
data->format,
GEGL_ACCESS_READ, GEGL_ABYSS_NONE);
GEGL_ACCESS_READ, GEGL_ABYSS_NONE, 2);
if (context->mask)
{
......@@ -1020,7 +1022,7 @@ gimp_histogram_calculate_area (const GeglRectangle *area,
while (gegl_buffer_iterator_next (iter))
{
const gfloat *data = iter->data[0];
const gfloat *data = iter->items[0].data;
gint length = iter->length;
gfloat max;
gfloat luminance;
......@@ -1029,7 +1031,7 @@ gimp_histogram_calculate_area (const GeglRectangle *area,
if (context->mask)
{
const gfloat *mask_data = iter->data[1];
const gfloat *mask_data = iter->items[1].data;
switch (n_components)
{
......
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