13
0

FP8: show value as formatted by the plugin

This commit is contained in:
Robin Gareus 2023-03-28 00:29:46 +02:00
parent fe6beee68e
commit 9ef6ee21de
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -594,7 +594,7 @@ FP8Strip::periodic_update_meter ()
if (_displaymode == PluginParam) {
if (_fader_ctrl) {
set_bar_mode (2); // Fill
set_text_line (2, value_as_string(_fader_ctrl->desc(), _fader_ctrl->get_value()));
set_text_line (2, _fader_ctrl->get_user_string ());
float barpos = _fader_ctrl->internal_to_interface (_fader_ctrl->get_value());
int val = std::min (127.f, std::max (0.f, barpos * 128.f));
if (val != _last_barpos) {