fix display-type of editor-mixer level-meter

This commit is contained in:
Robin Gareus 2013-07-24 16:15:06 +02:00 committed by Paul Davis
parent 89e1fbff88
commit 49e24a6e0a
2 changed files with 3 additions and 1 deletions

View File

@ -361,7 +361,7 @@ LevelMeter::setup_meters (int len, int initial_width, int thin_width)
}
}
}
if (meters[n].width != width || meters[n].length != len || color_changed) {
if (meters[n].width != width || meters[n].length != len || color_changed || meter_type != visible_meter_type) {
delete meters[n].meter;
meters[n].meter = new FastMeter ((uint32_t) floor (Config->get_meter_hold()), width, FastMeter::Vertical, len,
c[0], c[1], c[2], c[3], c[4],
@ -383,6 +383,7 @@ LevelMeter::setup_meters (int len, int initial_width, int thin_width)
}
show();
color_changed = false;
visible_meter_type = meter_type;
}
void

View File

@ -101,6 +101,7 @@ class LevelMeter : public Gtk::HBox, public ARDOUR::SessionHandlePtr
std::vector<MeterInfo> meters;
float max_peak;
ARDOUR::MeterType meter_type;
ARDOUR::MeterType visible_meter_type;
PBD::ScopedConnection _configuration_connection;
PBD::ScopedConnection _meter_type_connection;