summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-10-03 20:54:14 +0200
committerRobin Gareus <robin@gareus.org>2018-10-03 20:54:14 +0200
commitbe826f363522dbca96c8263d404c57c4fe9ff0e2 (patch)
tree1313903cc32202b3dde0de5003cc8f217039331c
parentcdc64358ec250aee5f76e361c48ae580bcf7003c (diff)
Prevent excessive meter redraws for inactive meters at zero
-rw-r--r--libs/widgets/fastmeter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/widgets/fastmeter.cc b/libs/widgets/fastmeter.cc
index cf1d9dd070..a9ecf5dad6 100644
--- a/libs/widgets/fastmeter.cc
+++ b/libs/widgets/fastmeter.cc
@@ -703,7 +703,7 @@ FastMeter::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;
}