1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-15 07:15:22 -04:00

Allow full range of overlap

This commit is contained in:
Arne Jünemann 2023-10-23 15:05:34 +02:00
parent 1034c79c30
commit 0d193d41f6
2 changed files with 2 additions and 2 deletions

View File

@ -893,7 +893,7 @@ void SpectrumVis::applySettings(const SpectrumSettings& settings, bool force)
|| (settings.m_fftOverlap != m_settings.m_fftOverlap) || force) || (settings.m_fftOverlap != m_settings.m_fftOverlap) || force)
{ {
m_overlapSize = settings.m_fftOverlap < 0 ? 0 : m_overlapSize = settings.m_fftOverlap < 0 ? 0 :
settings.m_fftOverlap < fftSize ? settings.m_fftOverlap : (fftSize/2); settings.m_fftOverlap < fftSize ? settings.m_fftOverlap : (fftSize - 1);
m_refillSize = fftSize - m_overlapSize; m_refillSize = fftSize - m_overlapSize;
m_fftBufferFill = m_overlapSize; m_fftBufferFill = m_overlapSize;
} }

View File

@ -4450,7 +4450,7 @@ void GLSpectrumView::timeZoom(bool zoomInElseOut)
return; return;
} }
if (zoomInElseOut && (m_fftOverlap == m_fftSize/2)) { if (zoomInElseOut && (m_fftOverlap == m_fftSize - 1)) {
return; return;
} }