From dff66fdcc5e17d93e97f5804dba8f9e6e69b341a Mon Sep 17 00:00:00 2001 From: Allan Bazinet Date: Mon, 11 Nov 2024 10:04:28 -0800 Subject: [PATCH] Eliminate extra linear average gain Linear average spectrum display seems fine as-is, without the gain doubling that current WSJTX gives it. --- plotter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotter.cpp b/plotter.cpp index e50151c9..c5d906a3 100644 --- a/plotter.cpp +++ b/plotter.cpp @@ -318,7 +318,7 @@ CPlotter::draw(float swide[]) { case Spectrum::Current: y += gain2d * (swide[i] - ymin ) + (m_flatten ? 0 : 15); break; case Spectrum::Cumulative: y += gain2d * sum(dec_data.savg, i) + (m_flatten ? 0 : 15); break; - case Spectrum::LinearAvg: y += gain2d * sum(spectra_.syellow, i) * 2.0f; break; + case Spectrum::LinearAvg: y += gain2d * sum(spectra_.syellow, i); break; } m_points.emplace_back(i, static_cast(0.9f * m_h2 - y * m_h2 / 70.0f));