diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2018-10-17 22:10:41 +0200 |
---|---|---|
committer | Andreas Müller <schnitzeltony@gmail.com> | 2018-10-17 22:35:29 +0200 |
commit | d2aa57af3b3d188569f5c9f7bea54ba3157a051d (patch) | |
tree | daf52a2220827b8e67345f21eb0b5e30de624798 /libs/canvas/meter.cc | |
parent | 0e55f33f382c4e9b380efc20c78dd57870c54597 (diff) |
Prevent excessive meter redraws for inactive meters at zero II
Same as be826f363522dbca96c8263d404c57c4fe9ff0e2
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Diffstat (limited to 'libs/canvas/meter.cc')
-rw-r--r-- | libs/canvas/meter.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |