[gegl/abyss] buffer: remove unnecessary additions and subtractions from buffer read iterators
- From: Ville Sokk <villesokk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/abyss] buffer: remove unnecessary additions and subtractions from buffer read iterators
- Date: Wed, 27 Jun 2012 18:17:41 +0000 (UTC)
commit f758f98dbeca038543fd4b44100d86c0c40be21a
Author: Ville Sokk <ville sokk gmail com>
Date: Wed Jun 27 19:53:32 2012 +0300
buffer: remove unnecessary additions and subtractions from buffer read iterators
gegl/buffer/gegl-buffer-access.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 8e0759f..9f18b42 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -536,7 +536,7 @@ gegl_buffer_iterate_read_simple (GeglBuffer *buffer,
bp = buf + bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width)
- pixels = (width + offsetx - bufx) - offsetx;
+ pixels = width - bufx;
else
pixels = tile_width - offsetx;
@@ -642,7 +642,7 @@ gegl_buffer_iterate_read_abyss_none (GeglBuffer *buffer,
bp = buf + bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width)
- pixels = (width + offsetx - bufx) - offsetx;
+ pixels = width - bufx;
else
pixels = tile_width - offsetx;
@@ -800,7 +800,7 @@ gegl_buffer_iterate_read_abyss_color (GeglBuffer *buffer,
bp = buf + bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width)
- pixels = (width + offsetx - bufx) - offsetx;
+ pixels = width - bufx;
else
pixels = tile_width - offsetx;
@@ -1017,7 +1017,7 @@ gegl_buffer_iterate_read_abyss_clamp (GeglBuffer *buffer,
else
{
if (width + offsetx - bufx < tile_width)
- pixels = (width + offsetx - bufx) - offsetx;
+ pixels = width - bufx;
else
pixels = tile_width - offsetx;
@@ -1120,7 +1120,7 @@ gegl_buffer_iterate_read_abyss_loop (GeglBuffer *buffer,
bp = buf + bufy * buf_stride + bufx * bpx_size;
if (width + offsetx - bufx < tile_width)
- pixels = (width + offsetx - bufx) - offsetx;
+ pixels = width - bufx;
else
pixels = tile_width - offsetx;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]