Browse Source

Re-add power meter for Audio, add Rect::shrink

tags/v0.6.2b
Andrew Belt 6 years ago
parent
commit
bd4f68c13d
2 changed files with 6 additions and 5 deletions
  1. +6
    -0
      include/util/math.hpp
  2. +0
    -5
      src/Core/AudioInterface.cpp

+ 6
- 0
include/util/math.hpp View File

@@ -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;
}
};




+ 0
- 5
src/Core/AudioInterface.cpp View File

@@ -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);
}
};



Loading…
Cancel
Save