From 52da12da018bcd8f2f94769d681bef9b3dfe782e Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 5 Oct 2019 15:14:27 -0400 Subject: [PATCH] Extended offset fudge factor to match normal mode fudge ratio --- mainwindow.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index efe3a54..883845b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4212,9 +4212,10 @@ void MainWindow::readFromStdout() //readFromStdout if(!m_bandActivity.contains(offset)){ int range = 10; - if(m_nSubMode == Varicode::JS8CallFast){ range = 15; } - if(m_nSubMode == Varicode::JS8CallTurbo){ range = 30; } - QList offsets = generateOffsets(offset-10, offset+10); + if(m_nSubMode == Varicode::JS8CallFast){ range = 16; } + if(m_nSubMode == Varicode::JS8CallTurbo){ range = 32; } + + QList offsets = generateOffsets(offset-range, offset+range); foreach(int prevOffset, offsets){ if(!m_bandActivity.contains(prevOffset)){ continue; } @@ -4547,8 +4548,8 @@ bool MainWindow::hasExistingMessageBuffer(int offset, bool drift, int *pPrevOffs } int range = 10; - if(m_nSubMode == Varicode::JS8CallFast){ range = 15; } - if(m_nSubMode == Varicode::JS8CallTurbo){ range = 30; } + if(m_nSubMode == Varicode::JS8CallFast){ range = 16; } + if(m_nSubMode == Varicode::JS8CallTurbo){ range = 32; } QList offsets = generateOffsets(offset-range, offset+range); @@ -4569,8 +4570,9 @@ bool MainWindow::hasExistingMessageBuffer(int offset, bool drift, int *pPrevOffs bool MainWindow::hasClosedExistingMessageBuffer(int offset){ int range = 10; - if(m_nSubMode == Varicode::JS8CallFast){ range = 15; } - if(m_nSubMode == Varicode::JS8CallTurbo){ range = 30; } + if(m_nSubMode == Varicode::JS8CallFast){ range = 16; } + if(m_nSubMode == Varicode::JS8CallTurbo){ range = 32; } + return offset - range <= m_lastClosedMessageBufferOffset && m_lastClosedMessageBufferOffset <= offset + range; }