[gegl/soc-2012-ops] gegl: respect stride and width in gegl_buffer_iterate
- From: Maxime Nicco <maxnicco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/soc-2012-ops] gegl: respect stride and width in gegl_buffer_iterate
- Date: Wed, 11 Jul 2012 18:30:07 +0000 (UTC)
commit 235ac2846caecac48953951ccad5caab1e641c26
Author: Massimo Valentini <mvalentini src gnome org>
Date: Fri Jul 6 19:30:05 2012 +0200
gegl: respect stride and width in gegl_buffer_iterate
gegl/buffer/gegl-buffer-access.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 294a70e..9f7681a 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -379,13 +379,13 @@ gegl_buffer_iterate (GeglBuffer *buffer,
{
gint row;
gint y = bufy;
- guchar *bp = buf + ((bufy) * width) * bpx_size;
+ guchar *bp = buf + bufy * buf_stride;
for (row = offsety;
row < tile_height && y < height;
row++, y++)
{
- memset (bp, 0x00, buf_stride);
+ memset (bp, 0x00, width * bpx_size);
bp += buf_stride;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]