Eliminate extra linear average gain

Linear average spectrum display seems fine as-is, without the gain doubling that current WSJTX gives it.
This commit is contained in:
Allan Bazinet 2024-11-11 10:04:28 -08:00
parent 52f4ce07aa
commit dff66fdcc5

View file

@ -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<int>(0.9f * m_h2 - y * m_h2 / 70.0f));