13
0

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:
Andreas Müller 2018-10-17 22:10:41 +02:00
parent 0e55f33f38
commit d2aa57af3b

View File

@ -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;
}