1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-17 21:28:43 -04:00

Waterfall brightness/overlap.

This commit is contained in:
John Greb
2014-06-10 12:24:52 +01:00
parent 243f3dbf69
commit bbe6d4505d
4 changed files with 13 additions and 14 deletions
+1 -3
View File
@@ -270,9 +270,7 @@ void GLSpectrum::updateWaterfall(const std::vector<Real>& spectrum)
quint32* pix = (quint32*)m_waterfallBuffer->scanLine(m_waterfallBufferPos);
for(int i = 0; i < m_fftSize; i++) {
Real vr = (int)((spectrum[i] - m_referenceLevel) * 2.4 * 100.0 / m_powerRange + 240.0);
int v = (int)vr;
int v = (int)((spectrum[i] - m_referenceLevel) * 2.4 * 100.0 / m_powerRange + 240.0);
if(v > 239)
v = 239;
else if(v < 0)