13
0

left/right meter marks in mixer (narrow red-stripe)

This commit is contained in:
Robin Gareus 2013-07-28 22:34:28 +02:00 committed by Paul Davis
parent 5a187cb650
commit eafb21bb3b
2 changed files with 11 additions and 2 deletions

View File

@ -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

View File

@ -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;