mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
update GUI to use new APIs
This commit is contained in:
parent
394bd8f428
commit
1db9ce4c90
4 changed files with 54 additions and 152 deletions
|
|
@ -1089,11 +1089,7 @@ GenericPluginUI::output_update ()
|
|||
(*i)->display_label->set_text (buf);
|
||||
|
||||
if ((*i)->meterinfo && (*i)->meterinfo->packed) {
|
||||
const float upper = c->desc().upper;
|
||||
const float lower = c->desc().lower;
|
||||
val = std::min (upper, std::max (lower, val));
|
||||
float lval = (val - lower / (upper - lower));
|
||||
(*i)->meterinfo->meter->set (lval);
|
||||
(*i)->meterinfo->meter->set (c->desc().to_interface (val));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue