BogaudioModules

BogaudioModules for VCV Rack
Log | Files | Refs | README | LICENSE

commit 944f73ffb05ab34ce04e0521e138b0ea776da70b
parent 5e2d23fe43a76d088795cd0220191ff31572e811
Author: Matt Demanett <matt@demanett.net>
Date:   Wed, 16 Sep 2020 23:14:03 -0400

RANALYZER: header fix.

Diffstat:
Msrc/Ranalyzer.cpp | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/Ranalyzer.cpp b/src/Ranalyzer.cpp @@ -224,21 +224,21 @@ struct RanalyzerDisplay : AnalyzerDisplay, ChannelDisplayListener { const char* labels[3] = { "TEST", "RESPONSE", "ANALYSIS" }; for (int i = 0; i < 3; ++i) { - auto color = _channelColors[i % channelColorsN]; - nvgStrokeColor(args.vg, color); - nvgStrokeWidth(args.vg, std::max(1.0f, 3.0f - getZoom())); - nvgBeginPath(args.vg); - float lineY = _insetTop - 7.0f; - nvgMoveTo(args.vg, x, lineY); - x += 10.0f; - nvgLineTo(args.vg, x, lineY); - x += 3.0f; - nvgStroke(args.vg); - if (_displayChannel[i]) { + auto color = _channelColors[i % channelColorsN]; + nvgStrokeColor(args.vg, color); + nvgStrokeWidth(args.vg, std::max(1.0f, 3.0f - getZoom())); + nvgBeginPath(args.vg); + float lineY = _insetTop - 7.0f; + nvgMoveTo(args.vg, x, lineY); + x += 10.0f; + nvgLineTo(args.vg, x, lineY); + x += 3.0f; + nvgStroke(args.vg); + drawText(args, labels[i], x, _insetTop + textY, 0.0, &color); + x += strlen(labels[i]) * charPx + 20; } - x += strlen(labels[i]) * charPx + 20; } nvgRestore(args.vg);