From a4ce78b972e0db3cfeda8f33ac5ccc659fab1d66 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 1 Oct 2025 00:32:06 +0200 Subject: Pad more at the top of audio plots. --- src/wx/audio_plot.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3