diff options
author | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-02-12 00:43:33 +0000 |
---|---|---|
committer | Thibaut Mattern <tmattern@users.sourceforge.net> | 2003-02-12 00:43:33 +0000 |
commit | f26f54430b315325d0855f743fe8afa8d7f340c4 (patch) | |
tree | 3330de8fed2698b0a8fe0607f5c78eb34edc15e4 | |
parent | 79c5ba20623088041c6fb3cb558dfd186f7c256c (diff) | |
download | xine-lib-f26f54430b315325d0855f743fe8afa8d7f340c4.tar.gz xine-lib-f26f54430b315325d0855f743fe8afa8d7f340c4.tar.bz2 |
Fixes a potential problem with luma value < 16.
CVS patchset: 4137
CVS date: 2003/02/12 00:43:33
-rw-r--r-- | src/post/visualizations/fftscope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/post/visualizations/fftscope.c b/src/post/visualizations/fftscope.c index f496f65f3..e10527def 100644 --- a/src/post/visualizations/fftscope.c +++ b/src/post/visualizations/fftscope.c @@ -22,7 +22,7 @@ * * FFT code by Steve Haehnichen, originally licensed under GPL v1 * - * $Id: fftscope.c,v 1.8 2003/02/11 08:58:15 tmattern Exp $ + * $Id: fftscope.c,v 1.9 2003/02/12 00:43:33 tmattern Exp $ * */ @@ -393,8 +393,8 @@ static void draw_fftscope(post_plugin_fftscope_t *this, vo_frame_t *frame) { /* persistence of top */ if (this->amp_age[c][i] >= 10) { x = this->amp_age[c][i] - 10; - x = 0x4f - x; - if (x < 0) x = 0; + x = 0x5f - x; + if (x < 0x10) x = 0x10; ((uint32_t *)frame->base[0])[map_ptr_bkp - this->amp_max[c][i] * (FFT_WIDTH / 2)] = be2me_32((x << 24) | (0x80 << 16) | (x << 8) | 0x80); |