diff --git a/include/util/math.hpp b/include/util/math.hpp index 3f14cfb1..30b048f2 100644 --- a/include/util/math.hpp +++ b/include/util/math.hpp @@ -297,6 +297,12 @@ struct Rect { r.size = size.plus(delta.mult(2.f)); return r; } + Rect shrink(Vec delta) { + Rect r; + r.pos = pos.plus(delta); + r.size = size.minus(delta.mult(2.f)); + return r; + } }; diff --git a/src/Core/AudioInterface.cpp b/src/Core/AudioInterface.cpp index b9b106f6..9034e190 100644 --- a/src/Core/AudioInterface.cpp +++ b/src/Core/AudioInterface.cpp @@ -278,11 +278,6 @@ struct AudioInterfaceWidget : ModuleWidget { audioWidget->audioIO = &module->audioIO; addChild(audioWidget); } - - void draw(NVGcontext *vg) override { - // HACK Bypass ModuleWidget::draw() as it currently only contains scissoring and power meters. This effectively disables drawing the power meter. - Widget::draw(vg); - } };