global peak label moved to the spectrogram

This commit is contained in:
2026-03-25 21:54:03 +01:00
parent 1918645d53
commit 67247654cf
4 changed files with 21 additions and 9 deletions

View File

@@ -797,14 +797,6 @@ void Application::renderControlPanel() {
ImGui::TextDisabled("Mode: %s", settings_.isIQ ? "I/Q"
: (settings_.numChannels > 1 ? "Multi-ch" : "Real"));
int pkCh2 = std::clamp(waterfallChannel_, 0, analyzer_.numSpectra() - 1);
auto [peakBin, peakDB] = analyzer_.findPeak(pkCh2);
double peakFreq = analyzer_.binToFreq(peakBin);
{
char peakBuf[128];
fmtFreqDB(peakBuf, sizeof(peakBuf), "Peak", peakFreq, peakDB);
ImGui::TextDisabled("%s", peakBuf);
}
}
void Application::renderSpectrumPanel() {