13
0

Prevent excessive meter redraws for inactive meters at zero

This commit is contained in:
Robin Gareus 2018-10-03 20:54:14 +02:00
parent cdc64358ec
commit be826f3635

View File

@ -703,7 +703,7 @@ FastMeter::set (float lvl, float peak)
if (pixwidth <= 0 || pixheight <=0) return;
if (peak == -1) {
if (lvl >= current_peak) {
if (lvl >= current_peak && lvl > 0) {
current_peak = lvl;
hold_state = hold_cnt;
}