diff options
author | Robin Gareus <robin@gareus.org> | 2018-10-03 20:54:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-10-03 20:54:14 +0200 |
commit | be826f363522dbca96c8263d404c57c4fe9ff0e2 (patch) | |
tree | 1313903cc32202b3dde0de5003cc8f217039331c | |
parent | cdc64358ec250aee5f76e361c48ae580bcf7003c (diff) |
Prevent excessive meter redraws for inactive meters at zero
-rw-r--r-- | libs/widgets/fastmeter.cc | 2 |
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; } |