summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-10-01 00:32:06 +0200
committerCarl Hetherington <cth@carlh.net>2025-10-10 21:15:37 +0200
commita4ce78b972e0db3cfeda8f33ac5ccc659fab1d66 (patch)
tree0a53a94586f92aac779251942aa212944960dd34 /src/wx
parentb21227438c735c98b26c6aa90ee6d3f353690679 (diff)
Pad more at the top of audio plots.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/audio_plot.cc2
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;