diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-19 08:32:05 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-06-19 08:32:05 -0400 |
commit | 10203b55172a5042173180189fa3807714721626 (patch) | |
tree | d212e5713e343be28eabf3c8f04a8eb5e3b7ac5d | |
parent | 3cf8cb3c3ed84fea811f497089fd3c284de8ffe8 (diff) |
two more corrections to waveform zooming changes
-rw-r--r-- | libs/canvas/wave_view.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/canvas/wave_view.cc b/libs/canvas/wave_view.cc index f27a98c883..9dca22ecca 100644 --- a/libs/canvas/wave_view.cc +++ b/libs/canvas/wave_view.cc @@ -819,7 +819,7 @@ WaveView::get_image (framepos_t start, framepos_t end, bool& full_image) const req->width = _canvas->visible_area().width(); req->height = _height; req->fill_color = _fill_color; - req->amplitude = _region_amplitude; + req->amplitude = _region_amplitude * _amplitude_above_axis; /* draw image in this (the GUI thread) */ @@ -857,7 +857,7 @@ WaveView::get_image_from_cache (framepos_t start, framepos_t end, bool& full) co } return images->lookup_image (_region->audio_source (_channel), start, end, _channel, - _height, _region_amplitude, _fill_color, _samples_per_pixel, full); + _height, _region_amplitude * _amplitude_above_axis, _fill_color, _samples_per_pixel, full); } void |