Rough visual cue for demod instances, implement squelch break indicator

This commit is contained in:
Charles J. Cliffe
2016-06-03 20:05:38 -04:00
parent e11e572d9d
commit fa9dfc2fb4
4 changed files with 57 additions and 0 deletions
+10
View File
@@ -338,6 +338,16 @@ void WaterfallCanvas::OnPaint(wxPaintEvent& WXUNUSED(event)) {
glContext->DrawDemod(demods[i], currentTheme->waterfallHighlight, currentCenterFreq, currentBandwidth);
}
for (int i = 0, iMax = demods.size(); i < iMax; i++) {
demods[i]->getVisualCue()->step();
int squelchBreak = demods[i]->getVisualCue()->getSquelchBreak();
if (squelchBreak) {
glContext->setHoverAlpha((float(squelchBreak) / 60.0));
glContext->DrawDemod(demods[i], currentTheme->waterfallHover, currentCenterFreq, currentBandwidth);
}
}
glContext->EndDraw();
SwapBuffers();