summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMusab Kılıç <musabkilic@protonmail.com>2021-09-04 01:55:52 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-04 03:24:03 +0200
commit0139a56aa517182813084cf3efc07a72c29a80ed (patch)
treea7d8b96d8e02940699689f172ccd7c673d2ab3cb
parent7b4565333114f21d7c5a10efc3c428d15a9cf89c (diff)
downloadserenity-0139a56aa517182813084cf3efc07a72c29a80ed.zip
Piano: Format slider values when initially set
-rw-r--r--Userland/Applications/Piano/ProcessorParameterSlider.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Applications/Piano/ProcessorParameterSlider.cpp b/Userland/Applications/Piano/ProcessorParameterSlider.cpp
index fd449ccfb8..fd7b20e67a 100644
--- a/Userland/Applications/Piano/ProcessorParameterSlider.cpp
+++ b/Userland/Applications/Piano/ProcessorParameterSlider.cpp
@@ -15,6 +15,7 @@ ProcessorParameterSlider::ProcessorParameterSlider(Orientation orientation, LibD
set_value(m_parameter.value().raw());
set_step((m_parameter.min_value() - m_parameter.max_value()).raw() / 128);
set_tooltip(m_parameter.name());
+ m_value_label->set_text(String::formatted("{:.2f}", static_cast<double>(m_parameter)));
on_change = [this](auto value) {
LibDSP::ParameterFixedPoint real_value;