diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-17 14:28:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-17 15:01:46 +0200 |
commit | 09d379465660f50c492c08e15a1e78b244333b1e (patch) | |
tree | 0c8328ae07feb16d2954bcb78877bf36a51b6052 /options/slider.cpp | |
parent | 973a5536a0c2db9406f9092647f27df7b400d97c (diff) |
options/slider: fix infix arithmetic
Diffstat (limited to 'options/slider.cpp')
-rw-r--r-- | options/slider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/slider.cpp b/options/slider.cpp index 458dba56..7f2180fa 100644 --- a/options/slider.cpp +++ b/options/slider.cpp @@ -71,7 +71,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 |