This website works better with JavaScript.
Home
Help
Sign In
VCVRack
/
Rack
mirror of
https://github.com/VCVRack/Rack.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
38
Wiki
Activity
Browse Source
Disable drawing of power meter on Core AUDIO
tags/v0.6.2b
Andrew Belt
6 years ago
parent
9d1d08105d
commit
831362d1c2
2 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
src/Core/AudioInterface.cpp
+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,
Write
Preview
Loading…
Cancel
Save