Browse Source

Finalize busboard.

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
1e60fffb6d
2 changed files with 597 additions and 842 deletions
  1. +596
    -841
      res/ComponentLibrary/RackBusboard.svg
  2. +1
    -1
      src/app/RackRail.cpp

+ 596
- 841
res/ComponentLibrary/RackBusboard.svg
File diff suppressed because it is too large
View File


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

@@ -57,7 +57,7 @@ void RackRail::draw(const DrawArgs &args) {
nvgStroke(args.vg); nvgStroke(args.vg);


// Bus board // Bus board
const float busBoardWidth = RACK_GRID_WIDTH * 20;
const float busBoardWidth = busBoardSvg->handle->width;
const float busBoardHeight = busBoardSvg->handle->height; const float busBoardHeight = busBoardSvg->handle->height;
const float busBoardY = y + (RACK_GRID_HEIGHT - busBoardHeight) / 2; const float busBoardY = y + (RACK_GRID_HEIGHT - busBoardHeight) / 2;
for (float x = 0; x < box.size.x; x += busBoardWidth) { for (float x = 0; x < box.size.x; x += busBoardWidth) {


Loading…
Cancel
Save