Suppress the spike seen when horizontal scrolling first starts.

This commit is contained in:
Joe Taylor 2022-09-10 09:42:38 -04:00
parent f8b21ea5e6
commit 7ed12d8507

View File

@ -334,6 +334,7 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
int yy=m_h2 - 0.1*m_vpixperdiv*(m_pdB-20.0);
LineBuf4[m_x].setX(m_x);
LineBuf4[m_x].setY(yy);
if(LineBuf4[m_w-1].y()==0) LineBuf4[m_w-1].setY(yy);
painter2D.drawPolyline(LineBuf4,m_x);
if(m_x < m_w-1) m_x++;
}