summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/slider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-compat/slider.cpp')
-rw-r--r--opentrack-compat/slider.cpp2
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