diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-01 00:32:06 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-10 21:15:37 +0200 |
| commit | a4ce78b972e0db3cfeda8f33ac5ccc659fab1d66 (patch) | |
| tree | 0a53a94586f92aac779251942aa212944960dd34 | |
| parent | b21227438c735c98b26c6aa90ee6d3f353690679 (diff) | |
Pad more at the top of audio plots.
| -rw-r--r-- | src/wx/audio_plot.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/audio_plot.cc b/src/wx/audio_plot.cc index 233141752..78294b55b 100644 --- a/src/wx/audio_plot.cc +++ b/src/wx/audio_plot.cc @@ -187,8 +187,8 @@ AudioPlot::paint () /* Assume all channels have the same number of points */ metrics.x_scale = data_width / float (_analysis->points (0)); metrics.height = GetSize().GetHeight (); - metrics.y_scale = (metrics.height - metrics.y_origin) / -_minimum; metrics.y_pad = 32; + metrics.y_scale = (metrics.height - 2 * metrics.y_pad) / -_minimum; for (int i = _minimum; i <= 0; i += 10) { int const y = (metrics.height - (i - _minimum) * metrics.y_scale) - metrics.y_pad; |
