diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-20 10:21:25 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-20 10:21:25 +0100 |
| commit | aded333234c8902c627a2710812a47e0d9a02577 (patch) | |
| tree | 78a9e1b547ee0e6627d3fa37f47f3d5d3054452a /src/blind-gauss-blur.c | |
| parent | Forgot to commit a file (diff) | |
| download | blind-aded333234c8902c627a2710812a47e0d9a02577.tar.gz blind-aded333234c8902c627a2710812a47e0d9a02577.tar.bz2 blind-aded333234c8902c627a2710812a47e0d9a02577.tar.xz | |
blind-gauss-blur: fix -a
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
| -rw-r--r-- | src/blind-gauss-blur.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/blind-gauss-blur.c b/src/blind-gauss-blur.c index a81a3ec..174afb0 100644 --- a/src/blind-gauss-blur.c +++ b/src/blind-gauss-blur.c @@ -221,11 +221,13 @@ process_xyza(char *restrict output, char *restrict cbuf, char *restrict sbuf, memset(img, 0, cn);\ start = 0, end = colour->height;\ is_master = efork_jobs(&start, &end, jobs, &children);\ - i1 = start * colour->width;\ - if (noalpha)\ + if (noalpha) {\ + i1 = start * colour->width;\ for (y1 = start; y1 < end; y1++)\ for (x1 = 0; x1 < colour->width; x1++, i1++)\ img[i1][3] = 1;\ + }\ + i1 = start * colour->width;\ for (y1 = start; y1 < end; y1++) {\ for (x1 = 0; x1 < colour->width; x1++, i1++) {\ BLUR_PIXEL_PROLOGUE(DIR);\ |
