1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 00:44:48 -04:00

Use vertical tab for channel tabs

This commit is contained in:
f4exb
2015-10-09 08:45:29 +02:00
parent 7742c0de2d
commit 76a60a8cb2
4 changed files with 43 additions and 19 deletions
+32 -16
View File
@@ -358,25 +358,41 @@ void GLSpectrum::updateHistogram(const std::vector<Real>& spectrum)
if(m_decay > 0)
sub += m_decay;
m_histogramHoldoffCount--;
if(m_histogramHoldoffCount <= 0) {
for(int i = 0; i < fftMulSize; i++) {
if((*b>>4) > 0) { // *b > 16
*b = *b - sub;
} else if(*b > 0) {
if(*h >= sub) {
*h = *h - sub;
} else if(*h > 0) {
*h = *h - 1;
} else {
*b = *b - 1;
*h = m_histogramLateHoldoff;
if (m_displayHistogram || m_displayMaxHold)
{
m_histogramHoldoffCount--;
if(m_histogramHoldoffCount <= 0)
{
for(int i = 0; i < fftMulSize; i++)
{
if((*b>>4) > 0) // *b > 16
{
*b = *b - sub;
}
else if(*b > 0)
{
if(*h >= sub)
{
*h = *h - sub;
}
else if(*h > 0)
{
*h = *h - 1;
}
else
{
*b = *b - 1;
*h = m_histogramLateHoldoff;
}
}
b++;
h++;
}
b++;
h++;
m_histogramHoldoffCount = m_histogramHoldoffBase;
}
m_histogramHoldoffCount = m_histogramHoldoffBase;
}
m_currentSpectrum = &spectrum; // Store spectrum for current spectrum line display