mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-25 16:48:44 +02:00
travis
This commit is contained in:
parent
80d7ed36f0
commit
65b94d1fa5
@ -780,7 +780,7 @@ void TrackArtist::UpdateVRuler(Track *t, wxRect & rect)
|
|||||||
|
|
||||||
const float extreme = LINEAR_TO_DB(2);
|
const float extreme = LINEAR_TO_DB(2);
|
||||||
// recover dB value of max
|
// recover dB value of max
|
||||||
const float dB = std::min(extreme, (fabs(max) * lastdBRange - lastdBRange));
|
const float dB = std::min(extreme, (float(fabs(max)) * lastdBRange - lastdBRange));
|
||||||
// find new scale position, but old max may get trimmed if the db limit rises
|
// find new scale position, but old max may get trimmed if the db limit rises
|
||||||
// Don't trim it to zero though, but leave max and limit distinct
|
// Don't trim it to zero though, but leave max and limit distinct
|
||||||
newMax = sign * std::max(ZOOMLIMIT, (dBRange + dB) / dBRange);
|
newMax = sign * std::max(ZOOMLIMIT, (dBRange + dB) / dBRange);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user