|
@@ -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) { |
|
|