Prepare for region polarity inversion (using negative gain)

This commit is contained in:
Robin Gareus 2022-12-17 13:12:22 +01:00
parent 37d6f1026a
commit 5b52aa956f
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 8 additions and 2 deletions

View file

@ -483,7 +483,7 @@ WaveView::draw_image (Cairo::RefPtr<Cairo::ImageSurface>& image, PeakData* peaks
has been scaled by scale_amplitude() already.
*/
const double clip_level = _global_clip_level * req->image->props.amplitude;
const double clip_level = _global_clip_level * fabs (req->image->props.amplitude);
const Shape shape = req->image->props.shape;
const bool logscaled = req->image->props.logscaled;