35 lines
968 B
Diff
35 lines
968 B
Diff
From 8d5e7e9f4e4372debb9ce285336ccc1ecc0383f6 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@gmail.com>
|
|
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
|
|
|
|
Upstream-Status: Applied
|
|
|
|
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
|
---
|
|
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 b539a1b4a..76e31bf58 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;
|
|
}
|
|
--
|
|
2.14.4
|
|
|