diff options
author | Stefan Sauer <ensonic@users.sf.net> | 2012-06-24 21:23:20 +0200 |
---|---|---|
committer | Stefan Sauer <ensonic@users.sf.net> | 2012-06-24 21:23:20 +0200 |
commit | 220c0c6e763b6a913549b7fc514f92a588bddc52 (patch) | |
tree | 97201eba54c88d36a8d061bb50622b94000a0359 | |
parent | 2320ad67daee4d93cb8985f44c90a32d12c2b32c (diff) |
spectrascope: avoid dark pixels in fade-and-move-up mode
-rw-r--r-- | gst/audiovisualizers/gstspectrascope.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/audiovisualizers/gstspectrascope.c b/gst/audiovisualizers/gstspectrascope.c index 1b61f567f..051fdc1f5 100644 --- a/gst/audiovisualizers/gstspectrascope.c +++ b/gst/audiovisualizers/gstspectrascope.c @@ -205,10 +205,12 @@ gst_spectra_scope_render (GstBaseAudioVisualizer * bscope, GstBuffer * audio, y = h - y; off = (y * w) + x; vdata[off] = 0x00FFFFFF; - for (l = y + 1; l <= h; l++) { + for (l = y; l < h; l++) { off += w; add_pixel (&vdata[off], 0x007F7F7F); } + /* ensure bottom line is full bright (especially in move-up mode) */ + add_pixel (&vdata[off], 0x007F7F7F); } return TRUE; } |