Browse Source

Redraw rails when zooming

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
2affd8a648
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      include/app.hpp
  2. +5
    -0
      src/app/RackWidget.cpp

+ 1
- 0
include/app.hpp View File

@@ -141,6 +141,7 @@ struct RackWidget : OpaqueWidget {

Widget *onMouseMove(Vec pos, Vec mouseRel) override;
void onMouseDownOpaque(int button) override;
void onZoom() override;
};

struct RackRail : TransparentWidget {


+ 5
- 0
src/app/RackWidget.cpp View File

@@ -524,5 +524,10 @@ void RackWidget::onMouseDownOpaque(int button) {
}
}

void RackWidget::onZoom() {
rails->box.size = Vec();
Widget::onZoom();
}


} // namespace rack

Loading…
Cancel
Save