diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-18 09:02:31 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-29 14:18:15 -0400 |
commit | 329753241f9fbeaae7c8bff0547451b324c0f0fc (patch) | |
tree | 42529500d65f40bdf7640430f0f5b8b1143fce85 /libs/canvas | |
parent | bace0e85dcc1d6d06ded3d6174fbdc803d180744 (diff) |
clip level is adjusted only by region amplitude (which is audible), not by _amplitude_above_axis
Diffstat (limited to 'libs/canvas')
-rw-r--r-- | libs/canvas/wave_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index f4e56cb1d5..e8db7d8c6a 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -399,7 +399,7 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* _peak has been scaled by scale_amplitude() already. */ - const double clip_level = _clip_level * req->amplitude; + const double clip_level = _clip_level * _region_amplitude; if (_shape == WaveView::Rectified) { |