Skip to content

Commit

Permalink
bank lines easier to see
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymuller committed Feb 18, 2022
1 parent 0edc1b4 commit a410298
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/StochSeq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,16 +727,6 @@ struct MemoryBankDisplay : Widget {
return;
}

// border lines
if (bankId < 11) {
nvgStrokeColor(args.vg, nvgRGB(60, 70, 73));
nvgStrokeWidth(args.vg, 1.5);
nvgBeginPath(args.vg);
nvgMoveTo(args.vg, box.size.x, 0);
nvgLineTo(args.vg, box.size.x, box.size.y);
nvgStroke(args.vg);
}

if (module->memBanks[bankId].isOn) {
// sliders
nvgStrokeColor(args.vg, nvgRGB(60, 70, 73));
Expand All @@ -755,7 +745,16 @@ struct MemoryBankDisplay : Widget {
nvgFill(args.vg);
}
}
}

// border lines
if (bankId < 11) {
nvgStrokeColor(args.vg, nvgRGB(60, 70, 73));
nvgStrokeWidth(args.vg, 1.5);
nvgBeginPath(args.vg);
nvgMoveTo(args.vg, box.size.x, 0);
nvgLineTo(args.vg, box.size.x, box.size.y);
nvgStroke(args.vg);
}
}

Expand Down

0 comments on commit a410298

Please sign in to comment.