[librsvg] filter: The blur filter was not rendered correctly when scaled to certain sizes.
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] filter: The blur filter was not rendered correctly when scaled to certain sizes.
- Date: Wed, 9 Nov 2011 21:14:33 +0000 (UTC)
commit 1fac3f44881a8b174af4163d8397d5c21fd7513e
Author: Isak <isaklindbeck hotmail com>
Date: Tue Jan 11 00:51:33 2011 +0100
filter: The blur filter was not rendered correctly when scaled to certain sizes.
Two for-loops was missing their initial expression in the box_blur function.
rsvg-filter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg-filter.c b/rsvg-filter.c
index eb218f2..27f962e 100644
--- a/rsvg-filter.c
+++ b/rsvg-filter.c
@@ -1350,12 +1350,12 @@ box_blur (GdkPixbuf * in, GdkPixbuf * output, guchar * intermediate, gint kw,
if (y - kh / 2 >= 0 && y - kh / 2 < boundarys.y1)
output_pixels[4 * x + (y - kh / 2) * rowstride + ch] = sum / kh;
}
- for (; y < boundarys.y1; y++) {
+ for (y = boundarys.y0 + kh; y < boundarys.y1; y++) {
sum -= intermediate[y % kh];
sum += (intermediate[y % kh] = in_pixels[4 * x + y * rowstride + ch]);
output_pixels[4 * x + (y - kh / 2) * rowstride + ch] = sum / kh;
}
- for (; y < boundarys.y1 + kh; y++) {
+ for (y = boundarys.y1; y < boundarys.y1 + kh; y++) {
sum -= intermediate[y % kh];
if (y - kh / 2 >= 0 && y - kh / 2 < boundarys.y1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]