mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
Corrected spectrum channels display: removed frequency scale central line when the channel is not selected
This commit is contained in:
parent
aa566f0910
commit
2018607944
@ -769,11 +769,11 @@ void GLSpectrum::paintGL()
|
|||||||
|
|
||||||
QVector4D color(dv->m_channelMarker->getColor().redF(), dv->m_channelMarker->getColor().greenF(), dv->m_channelMarker->getColor().blueF(), 0.5f);
|
QVector4D color(dv->m_channelMarker->getColor().redF(), dv->m_channelMarker->getColor().greenF(), dv->m_channelMarker->getColor().blueF(), 0.5f);
|
||||||
m_glShaderSimple.drawSurface(dv->m_glMatrixFreqScale, color, q3, 4);
|
m_glShaderSimple.drawSurface(dv->m_glMatrixFreqScale, color, q3, 4);
|
||||||
QVector4D colorLine(0.8f, 0.8f, 0.6f, 1.0f);
|
|
||||||
m_glShaderSimple.drawSegments(dv->m_glMatrixDsbFreqScale, colorLine, &q3[8], 2);
|
|
||||||
|
|
||||||
if (dv->m_channelMarker->getHighlighted())
|
if (dv->m_channelMarker->getHighlighted())
|
||||||
{
|
{
|
||||||
|
QVector4D colorLine(0.8f, 0.8f, 0.6f, 1.0f);
|
||||||
|
m_glShaderSimple.drawSegments(dv->m_glMatrixDsbFreqScale, colorLine, &q3[8], 2);
|
||||||
m_glShaderSimple.drawSegments(dv->m_glMatrixFreqScale, colorLine, &q3[4], 2);
|
m_glShaderSimple.drawSegments(dv->m_glMatrixFreqScale, colorLine, &q3[4], 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user