added: make the peak hold move up instead of down

This commit is contained in:
Bob van Loosen 2012-11-18 21:00:38 +01:00
parent 4bf3826f5e
commit 6c2ed75aef

View file

@ -334,7 +334,11 @@ void CBitVis::SendData(int64_t time)
pixel |= 2;
if (time - currpeak.time > 500000 && Round32(currpeak.value) > 0)
currpeak.value -= 0.01f;
{
currpeak.value += 0.01f;
if (currpeak.value >= lines)
currpeak.value = 0.0f;
}
}
line[x] = pixel;
}