Skip to content

Commit

Permalink
revert finer precision dim gain
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBoule committed Nov 20, 2023
1 parent 7792811 commit 3a229c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
### 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("%.1f", math::normalizeZero(valGain));
valGain = std::round(valGain);
return string::f("%g", math::normalizeZero(valGain));
}
void setDisplayValue(float displayValue) override {setValue(displayValue);}
std::string getLabel() override {return "Dim gain";}
Expand Down

0 comments on commit 3a229c3

Please sign in to comment.