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:
@@ -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:
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user