diff options
Diffstat (limited to 'src/blind-stack.c')
| -rw-r--r-- | src/blind-stack.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/blind-stack.c b/src/blind-stack.c index 0eab3ec..b7dcc8e 100644 --- a/src/blind-stack.c +++ b/src/blind-stack.c @@ -1,8 +1,5 @@ /* See LICENSE file for copyright and license details. */ -#include "stream.h" -#include "util.h" - -#include <string.h> +#include "common.h" USAGE("[-b] bottom-stream ... top-stream") @@ -22,7 +19,7 @@ USAGE("[-b] bottom-stream ... top-stream") z2 = ((TYPE *)(streams[j].buf + i))[2];\ a2 = ((TYPE *)(streams[j].buf + i))[3];\ if (BLEND)\ - a2 /= j + 1;\ + a2 /= (TYPE)(j + 1);\ x1 = x1 * a1 * (1 - a2) + x2 * a2;\ y1 = y1 * a1 * (1 - a2) + y2 * a2;\ z1 = z1 * a1 * (1 - a2) + z2 * a2;\ |
