summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2016-02-02 15:46:55 -0600
committerBen Loftis <ben@harrisonconsoles.com>2016-02-02 15:47:05 -0600
commitea08354c17d047046067768879c12af65c9ef0a0 (patch)
tree0e40a6f0ce1fb1cea8b3b972df9fa2ba940990ea /libs
parent2cb3343eec61232e626542b2a123f9df7fae6523 (diff)
fix for knob scaling
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/mackie/strip.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/mackie/strip.cc b/libs/surfaces/mackie/strip.cc
index 8f8ab1ce40..429c1980ab 100644
--- a/libs/surfaces/mackie/strip.cc
+++ b/libs/surfaces/mackie/strip.cc
@@ -1124,14 +1124,14 @@ Strip::handle_pot (Pot& pot, float delta)
} else {
- double p = ac->get_value();
+ double p = ac->get_interface();
p += delta;
- p = max (ac->lower(), p);
- p = min (ac->upper(), p);
+ p = max (0, p);
+ p = min (1.0, p);
- ac->set_value (p, gcd);
+ ac->set_interface ( ac->interface_to_internal(p), gcd);
}
}