fixed: scale visualizer to lines

This commit is contained in:
Bob van Loosen 2012-12-13 01:02:25 +01:00
parent 6f5608bdb2
commit ae1da3ab99

View file

@ -307,7 +307,7 @@ void CBitVis::SendData(int64_t time)
for (int i = 0; i < 4; i++) for (int i = 0; i < 4; i++)
{ {
pixel <<= 2; 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) if (value > y)
pixel |= 1; pixel |= 1;