fix display-type of editor-mixer level-meter
This commit is contained in:
parent
89e1fbff88
commit
49e24a6e0a
|
@ -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;
|
delete meters[n].meter;
|
||||||
meters[n].meter = new FastMeter ((uint32_t) floor (Config->get_meter_hold()), width, FastMeter::Vertical, len,
|
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],
|
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();
|
show();
|
||||||
color_changed = false;
|
color_changed = false;
|
||||||
|
visible_meter_type = meter_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -101,6 +101,7 @@ class LevelMeter : public Gtk::HBox, public ARDOUR::SessionHandlePtr
|
||||||
std::vector<MeterInfo> meters;
|
std::vector<MeterInfo> meters;
|
||||||
float max_peak;
|
float max_peak;
|
||||||
ARDOUR::MeterType meter_type;
|
ARDOUR::MeterType meter_type;
|
||||||
|
ARDOUR::MeterType visible_meter_type;
|
||||||
|
|
||||||
PBD::ScopedConnection _configuration_connection;
|
PBD::ScopedConnection _configuration_connection;
|
||||||
PBD::ScopedConnection _meter_type_connection;
|
PBD::ScopedConnection _meter_type_connection;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user