mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Set meter-height depending on configured fader-length
Previously when len was zero, FastMeter enforced a length of at least 250px.
This commit is contained in:
parent
4ec86a2657
commit
6fbf2f37d9
1 changed files with 7 additions and 0 deletions
|
|
@ -380,6 +380,13 @@ GainMeterBase::setup_meters (int len)
|
||||||
meter_channels = route()->shared_peak_meter()->input_streams().n_total();
|
meter_channels = route()->shared_peak_meter()->input_streams().n_total();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (len == 0) {
|
||||||
|
assert (gain_slider);
|
||||||
|
Gtk::Requisition sz;
|
||||||
|
sz = gain_slider->size_request ();
|
||||||
|
len = gain_slider->orientation () == FaderWidget::VERT ? sz.height : sz.width;
|
||||||
|
}
|
||||||
|
|
||||||
switch (_width) {
|
switch (_width) {
|
||||||
case Wide:
|
case Wide:
|
||||||
//meter_ticks1_area.show();
|
//meter_ticks1_area.show();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue