Erase old T M R 73 when RxFreq has changed.

This commit is contained in:
Joe Taylor 2021-01-07 15:51:52 -05:00
parent 3b54196206
commit f5d2c5cd90
2 changed files with 4 additions and 1 deletions

View File

@ -141,10 +141,12 @@ 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);
if(m_bFirst or bRed or (!m_bQ65_Sync and !m_bQ65_MultiSync) or m_mode!=m_mode0 or m_bResized) {
if(m_bFirst or bRed or (!m_bQ65_Sync and !m_bQ65_MultiSync) or m_mode!=m_mode0
or m_bResized or m_rxFreq!=m_rxFreq0) {
m_2DPixmap = m_OverlayPixmap.copy(0,0,m_w,m_h2);
m_bFirst=false;
m_bResized=false;
m_rxFreq0=m_rxFreq;
}
m_mode0=m_mode;
QPainter painter2D(&m_2DPixmap);

View File

@ -179,6 +179,7 @@ private:
qint32 m_h1;
qint32 m_h2;
qint32 m_rxFreq;
qint32 m_rxFreq0=0;
qint32 m_txFreq;
qint32 m_fMin;
qint32 m_fMax;