commit ff2ebdc2a84bc96bd59026f51556af9001e4cc61
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sat May 6 11:47:55 2017 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sat May 6 11:47:55 2017 +0200
blind-gauss-blur: fix -a
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/src/blind-gauss-blur.c b/src/blind-gauss-blur.c
index 031860d..3796fa4 100644
--- a/src/blind-gauss-blur.c
+++ b/src/blind-gauss-blur.c
_AT_@ -210,12 +210,6 @@ 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);\
- 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++) {\
_AT_@ -276,7 +270,7 @@ process_xyza(char *restrict output, char *restrict cbuf, char *restrict sbuf,
}
/* ensure the video if opaque if -a was used */
- if (!noalpha) {
+ if (noalpha) {
i1 = start * colour->width;
for (y1 = start; y1 < end; y1++)
for (x1 = 0; x1 < colour->width; x1++, i1++)
Received on Sat May 06 2017 - 12:39:22 CEST
This archive was generated by hypermail 2.3.0
: Sat May 06 2017 - 12:48:16 CEST