fixed: scale visualizer to lines
This commit is contained in:
parent
6f5608bdb2
commit
ae1da3ab99
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue