diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-20 14:31:02 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-20 14:31:02 +0100 |
| commit | 0ec6b43bdc2c15121280b771be2053d957537b6e (patch) | |
| tree | 65adf1e5bf8196a2f7c8dd99779252987c27d4d4 | |
| parent | Add man pages (diff) | |
| download | blind-0ec6b43bdc2c15121280b771be2053d957537b6e.tar.gz blind-0ec6b43bdc2c15121280b771be2053d957537b6e.tar.bz2 blind-0ec6b43bdc2c15121280b771be2053d957537b6e.tar.xz | |
blind-dissolve: fix direction
Signed-off-by: Mattias Andrée <maandree@kth.se>
| -rw-r--r-- | src/blind-dissolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blind-dissolve.c b/src/blind-dissolve.c index 1873975..980d6a6 100644 --- a/src/blind-dissolve.c +++ b/src/blind-dissolve.c @@ -17,7 +17,7 @@ process_xyza(struct stream *stream, size_t n, size_t f) double a; for (i = 0; i < n; i += stream->pixel_size) { a = ((double *)(stream->buf + i))[3]; - a = a * (double)f / fmd; + a = a * (double)(fm - f) / fmd; ((double *)(stream->buf + i))[3] = a; } } @@ -29,7 +29,7 @@ process_xyza_r(struct stream *stream, size_t n, size_t f) double a; for (i = 0; i < n; i += stream->pixel_size) { a = ((double *)(stream->buf + i))[3]; - a = a * (double)(fm - f) / fmd; + a = a * (double)f / fmd; ((double *)(stream->buf + i))[3] = a; } } |
