Don't erase the red sync curve too soon.

This commit is contained in:
Joe Taylor 2020-12-18 15:14:17 -05:00
parent e7c8eba2a5
commit 5315bbd88a
2 changed files with 5 additions and 1 deletions

View File

@ -140,7 +140,10 @@ void CPlotter::draw(float swide[], bool bScroll, bool bRed)
//move current data down one line (must do this before attaching a QPainter object)
if(bScroll and !m_bReplot) m_WaterfallPixmap.scroll(0,1,0,0,m_w,m_h1);
QPainter painter1(&m_WaterfallPixmap);
m_2DPixmap = m_OverlayPixmap.copy(0,0,m_w,m_h2);
if(m_bFirst or bRed or !m_bQ65_Sync) {
m_2DPixmap = m_OverlayPixmap.copy(0,0,m_w,m_h2);
m_bFirst=false;
}
QPainter painter2D(&m_2DPixmap);
if(!painter2D.isActive()) return;
QFont Font("Arial");

View File

@ -118,6 +118,7 @@ private:
bool m_bQ65_Sync;
bool m_bVHF;
bool m_bSingleDecode;
bool m_bFirst=true;
float m_fSpan;