blind-gauss-blur: change glow function - blind - suckless command-line video editing utility
HTML git clone git://git.suckless.org/blind
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 08b33274f39f0dafe9c8cc68fe637884d7a218a9
DIR parent 5ba5815d0a7255f311cdc66251774e6e36854e8f
HTML Author: Mattias Andrée <maandree@kth.se>
Date: Wed, 26 Jul 2017 21:56:36 +0200
blind-gauss-blur: change glow function
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
M src/blind-gauss-blur.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
DIR diff --git a/src/blind-gauss-blur.c b/src/blind-gauss-blur.c
@@ -263,10 +263,10 @@ static void *original = NULL;
i1 = start * colour->width;\
for (y1 = start; y1 < end; y1++) {\
for (x1 = 0; x1 < colour->width; x1++, i1++) {\
- img[i1][0] = 1 - (1 - img[i1][0]) * (1 - orig[i1][0]);\
- img[i1][1] = 1 - (1 - img[i1][1]) * (1 - orig[i1][1]);\
- img[i1][2] = 1 - (1 - img[i1][2]) * (1 - orig[i1][2]);\
- img[i1][3] = 1 - (1 - img[i1][3]) * (1 - orig[i1][3]);\
+ img[i1][0] += orig[i1][0];\
+ img[i1][1] += orig[i1][1];\
+ img[i1][2] += orig[i1][2];\
+ img[i1][3] += orig[i1][3];\
}\
}\
}\