fix meter-background highlight when peaking. (> vs >=)

This commit is contained in:
Robin Gareus 2013-08-04 18:50:51 +02:00 committed by Paul Davis
parent badb902bc0
commit c014ccaeb1

View File

@ -138,7 +138,7 @@ LevelMeterBase::update_meters ()
const float mpeak = _meter->meter_level(n, MeterMaxPeak); const float mpeak = _meter->meter_level(n, MeterMaxPeak);
if (mpeak > (*i).max_peak) { if (mpeak > (*i).max_peak) {
(*i).max_peak = mpeak; (*i).max_peak = mpeak;
(*i).meter->set_highlight(mpeak > Config->get_meter_peak()); (*i).meter->set_highlight(mpeak >= Config->get_meter_peak());
} }
if (mpeak > max_peak) { if (mpeak > max_peak) {
max_peak = mpeak; max_peak = mpeak;