Browse Source

Disable drawing of power meter on Core AUDIO

tags/v0.6.2b
Andrew Belt 6 years ago
parent
commit
831362d1c2
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      src/Core/AudioInterface.cpp
  2. +1
    -1
      src/app/ModuleWidget.cpp

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

@@ -278,6 +278,11 @@ 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);
}
};



+ 1
- 1
src/app/ModuleWidget.cpp View File

@@ -295,7 +295,7 @@ void ModuleWidget::draw(NVGcontext *vg) {
nvgScissor(vg, 0, 0, box.size.x, box.size.y);
Widget::draw(vg);

// CPU meter
// Power meter
if (module && gPowerMeter) {
nvgBeginPath(vg);
nvgRect(vg,


Loading…
Cancel
Save