1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Restore change of Waveform dB scale with change of magnification...

... This is done with Shift+Ctrl+wheel and pointer in the vertical ruler, and
the pointer y coordinate near the bottom of the dB scale.

If y coordinate is far from there, then Shift+Ctrl+wheel changes dB level
without change of magnification (as before this commit).
This commit is contained in:
Paul Licameli
2016-10-28 11:56:15 -04:00
parent b5ccd5b817
commit 8b66fc4b05
5 changed files with 37 additions and 12 deletions

View File

@@ -550,6 +550,10 @@ class AUDACITY_DLL_API WaveTrack final : public Track {
void GetSpectrumBounds(float *min, float *max) const;
void SetSpectrumBounds(float min, float max) const;
// For display purposes, calculate the y coordinate where the midline of
// the wave should be drawn, if display minimum and maximum map to the
// bottom and top. Maybe that is out of bounds.
int ZeroLevelYCoordinate(wxRect rect) const;
protected:
//