Prevent excessive meter redraws for inactive meters at zero
This commit is contained in:
parent
cdc64358ec
commit
be826f3635
|
@ -703,7 +703,7 @@ FastMeter::set (float lvl, float peak)
|
||||||
if (pixwidth <= 0 || pixheight <=0) return;
|
if (pixwidth <= 0 || pixheight <=0) return;
|
||||||
|
|
||||||
if (peak == -1) {
|
if (peak == -1) {
|
||||||
if (lvl >= current_peak) {
|
if (lvl >= current_peak && lvl > 0) {
|
||||||
current_peak = lvl;
|
current_peak = lvl;
|
||||||
hold_state = hold_cnt;
|
hold_state = hold_cnt;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user