Browse Source

Wrap PlugWidget size to plug SVG instead of infinite.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
8102678e9c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/app/CableWidget.cpp

+ 2
- 0
src/app/CableWidget.cpp View File

@@ -68,6 +68,8 @@ struct PlugWidget : widget::Widget {
plugLight = new PlugLight;
plugLight->setPosition(plugLight->getSize().mult(-0.5));
addChild(plugLight);

setSize(plug->getSize());
}

void step() override {


Loading…
Cancel
Save