update GUI to use new APIs

This commit is contained in:
Robin Gareus 2017-06-19 16:51:17 +02:00
parent 394bd8f428
commit 1db9ce4c90
4 changed files with 54 additions and 152 deletions

View file

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