Browse Source

Fix knobs with minValue > maxValue, fix shadows on SVGKnob when not

calling setSVG()
tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
10e751dffd
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      src/app/Knob.cpp
  2. +1
    -0
      src/app/SVGKnob.cpp

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

@@ -30,7 +30,7 @@ void Knob::onDragMove(EventDragMove &e) {
if (windowIsModPressed())
delta /= 16.0;
dragValue += delta;
dragValue = clamp(dragValue, minValue, maxValue);
dragValue = clamp2(dragValue, minValue, maxValue);
if (snap)
setValue(roundf(dragValue));
else


+ 1
- 0
src/app/SVGKnob.cpp View File

@@ -7,6 +7,7 @@ namespace rack {
SVGKnob::SVGKnob() {
shadow = new CircularShadow();
addChild(shadow);
shadow->box.size = Vec();

tw = new TransformWidget();
addChild(tw);


Loading…
Cancel
Save