commit 4053c9c779571d5a46d633c96d997b2ffe2743fa
parent ab03466e37606685b79d540362d3d217155dbc5a
Author: Matt Demanett <matt@demanett.net>
Date: Wed, 23 Sep 2020 20:57:04 -0400
Quiet some gcc warnings.
Diffstat:
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/MegaGate.cpp b/src/MegaGate.cpp
@@ -430,7 +430,7 @@ struct MegaGateWidget : LPGEnvBaseWidget {
addChild(createLight<SmallLight<GreenLight>>(hpfPoles4LightPosition, module, MegaGate::HPF_POLES_4_LIGHT));
}
- void contextMenu(Menu* menu) {
+ void contextMenu(Menu* menu) override {
LPGEnvBaseWidget::contextMenu(menu);
auto m = dynamic_cast<MegaGate*>(module);
assert(m);
diff --git a/src/Velo.cpp b/src/Velo.cpp
@@ -119,7 +119,7 @@ struct VeloWidget : BGModuleWidget {
addOutput(createOutput<Port24>(outOutputPosition, module, Velo::OUT_OUTPUT));
}
- void contextMenu(Menu* menu) {
+ void contextMenu(Menu* menu) override {
auto m = dynamic_cast<Velo*>(module);
assert(m);
menu->addChild(new BoolOptionMenuItem("Level knob/CV scales bipolar CV", [m]() { return &m->_levelScalesCV; }));
diff --git a/src/analyzer_base.cpp b/src/analyzer_base.cpp
@@ -800,14 +800,14 @@ int AnalyzerDisplay::binValueToHeight(float value, AmplitudePlot plot) {
value /= rangeDb;
return roundf(_graphSize.y * value);
}
-
- case PERCENTAGE_AP: {
- value = binValueToAmplitude(value);
- value = std::min(value, 2.0f);
- value = std::max(value, 0.0f);
- return roundf(_graphSize.y * value / _totalLinearAmplitude);
- }
+ default:;
}
+
+ //case PERCENTAGE_AP:
+ value = binValueToAmplitude(value);
+ value = std::min(value, 2.0f);
+ value = std::max(value, 0.0f);
+ return roundf(_graphSize.y * value / _totalLinearAmplitude);
}
float AnalyzerDisplay::binValueToAmplitude(float value) {