From f142c98e82b97a6e3d341793178b8e8057cf6205 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 27 Oct 2018 19:45:42 +0200 Subject: [PATCH] Scope: clear display trace before update if trace time is 1s or higher (progressive display) --- sdrgui/dsp/scopevis.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sdrgui/dsp/scopevis.cpp b/sdrgui/dsp/scopevis.cpp index cb5b63f3c..170214162 100644 --- a/sdrgui/dsp/scopevis.cpp +++ b/sdrgui/dsp/scopevis.cpp @@ -390,6 +390,14 @@ void ScopeVis::processTrace(const SampleVector::const_iterator& cbegin, const Sa if (m_traceStart) // start of trace processing { + // if trace time is 1s or more the display is progressive so we have to clear it first + + float traceTime = ((float) m_traceSize) / m_sampleRate; + + if (traceTime >= 1.0f) { + initTraceBuffers(); + } + // process until begin point if (m_maxTraceDelay > 0) { // trace back