Prevent excessive meter redraws for inactive meters at zero II
Same as be826f3635
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
parent
0e55f33f38
commit
d2aa57af3b
@ -702,7 +702,7 @@ Meter::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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user