left/right meter marks in mixer (narrow red-stripe)
This commit is contained in:
parent
5a187cb650
commit
eafb21bb3b
@ -526,9 +526,12 @@ GainMeterBase::gain_changed ()
|
||||
void
|
||||
GainMeterBase::set_meter_strip_name (const char * name)
|
||||
{
|
||||
char tmp[256];
|
||||
meter_metric_area.set_name (name);
|
||||
meter_ticks1_area.set_name (name);
|
||||
meter_ticks2_area.set_name (name);
|
||||
sprintf(tmp, "Mark%sLeft", name);
|
||||
meter_ticks1_area.set_name (tmp);
|
||||
sprintf(tmp, "Mark%sRight", name);
|
||||
meter_ticks2_area.set_name (tmp);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -281,10 +281,16 @@ meter_render_ticks (Gtk::Widget& w, MeterType type, vector<ARDOUR::DataType> typ
|
||||
if (tickleft) {
|
||||
if (w.get_name().substr(0, 3) == "Bar") {
|
||||
box_l = width-2; box_w = 2;
|
||||
} else if (w.get_name().substr(0, 4) == "Mark") {
|
||||
box_l = width-2; box_w = 2;
|
||||
background = false;
|
||||
}
|
||||
} else if (tickright) {
|
||||
if (w.get_name().substr(0, 3) == "Bar") {
|
||||
box_l = 0; box_w = 2;
|
||||
} else if (w.get_name().substr(0, 4) == "Mark") {
|
||||
box_l = 0; box_w = 2;
|
||||
background = false;
|
||||
}
|
||||
} else {
|
||||
box_l = 0; box_w = 3;
|
||||
|
Loading…
Reference in New Issue
Block a user