Skip to content

Commit

Permalink
MM and MC: add one decimal of precision to dim gain slider readouts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBoule committed Nov 18, 2023
1 parent 98846cf commit 97fd45e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### 2.4.0 (in development)

- Add one decimal of precision to dim gain sliders' readouts in Mixers and MasterChan (in menus)
- Fix code warnings using Cppcheck


Expand Down
4 changes: 2 additions & 2 deletions src/MixMaster/MixerMenus.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,8 @@ struct DimGainQuantity : Quantity {
float getDisplayValue() override {return getValue();}
std::string getDisplayValueString() override {
float valGain = getDisplayValue();
valGain = std::round(valGain);
return string::f("%g", math::normalizeZero(valGain));
// valGain = std::round(valGain);
return string::f("%.1f", math::normalizeZero(valGain));
}
void setDisplayValue(float displayValue) override {setValue(displayValue);}
std::string getLabel() override {return "Dim gain";}
Expand Down

0 comments on commit 97fd45e

Please sign in to comment.