diff options
Diffstat (limited to 'opentrack-compat')
-rw-r--r-- | opentrack-compat/slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/opentrack-compat/slider.cpp b/opentrack-compat/slider.cpp index fca591a1..b491dd56 100644 --- a/opentrack-compat/slider.cpp +++ b/opentrack-compat/slider.cpp @@ -66,7 +66,7 @@ int slider_value::to_slider_pos(int q_min, int q_max) const { const int q_diff = q_max - q_min; - return int(std::round(((cur() - min()) * q_diff / (max() - min())) + q_min)); + return int(std::round(((cur() - min() * q_diff) / (max() - min())) + q_min)); } } // end ns options |