From d2aa57af3b3d188569f5c9f7bea54ba3157a051d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 17 Oct 2018 22:10:41 +0200 Subject: [PATCH] Prevent excessive meter redraws for inactive meters at zero II MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Same as be826f363522dbca96c8263d404c57c4fe9ff0e2 Signed-off-by: Andreas Müller --- libs/canvas/meter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/canvas/meter.cc b/libs/canvas/meter.cc index b539a1b4ae..76e31bf588 100644 --- a/libs/canvas/meter.cc +++ b/libs/canvas/meter.cc @@ -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; }