From ae1da3ab999a8238dbfdfefe8f61320326a75fce Mon Sep 17 00:00:00 2001 From: Bob van Loosen Date: Thu, 13 Dec 2012 01:02:25 +0100 Subject: [PATCH] fixed: scale visualizer to lines --- src/bitvis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitvis.cpp b/src/bitvis.cpp index ac531f3..1f6f8da 100644 --- a/src/bitvis.cpp +++ b/src/bitvis.cpp @@ -307,7 +307,7 @@ void CBitVis::SendData(int64_t time) for (int i = 0; i < 4; i++) { pixel <<= 2; - int value = Round32((log10(m_displaybuf[x * 4 + i]) * 20.0f) + 55.0f) * 1.0f; + int value = Round32(((log10(m_displaybuf[x * 4 + i]) * 20.0f) + 55.0f) / 48.0f * m_nrlines); if (value > y) pixel |= 1;