[gegl] pixelise: small oversight
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] pixelise: small oversight
- Date: Sat, 3 Sep 2011 15:38:56 +0000 (UTC)
commit 8bc1bc53de5e3766e9fc7cfb79e94a3cf0d208fc
Author: Massimo Valentini <mvalentini src gnome org>
Date: Sat Sep 3 17:21:57 2011 +0200
pixelise: small oversight
and update its reference image
operations/common/pixelise.c | 2 +-
tests/compositions/reference/pixelise.png | Bin 5023 -> 5392 bytes
2 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/pixelise.c b/operations/common/pixelise.c
index 21ef88f..664a41d 100644
--- a/operations/common/pixelise.c
+++ b/operations/common/pixelise.c
@@ -87,7 +87,7 @@ calc_block_colors (gfloat* block_colors,
for (i=px; i<px+xsize; ++i)
{
for (c=0; c<4; ++c)
- col[c] += input[(py*line_width + px)*4 + c];
+ col[c] += input[(j*line_width + i)*4 + c];
}
}
for (c=0; c<4; ++c)
diff --git a/tests/compositions/reference/pixelise.png b/tests/compositions/reference/pixelise.png
index 33a9302..09ee594 100644
Binary files a/tests/compositions/reference/pixelise.png and b/tests/compositions/reference/pixelise.png differ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]