osc.lua: fix calculation for slider's min-max average
Average of two numbers is given by the sum of the two numbers divided by two. It's gone unnoticed because `s_min` is basically always zero.
This commit is contained in:
1 parent
3665b8d1d8
commit
9cd2a9fc48
1 file changed
+1
-1
+1
-1
@@ -818,7 +818,7 @@ function render_elements(master_ass)
|
||||
elseif (sliderpos > (s_max - 3)) then
|
||||
an = an + 1
|
||||
end
|
||||
elseif (sliderpos > (s_max-s_min)/2) then
|
||||
elseif (sliderpos > (s_max+s_min)/2) then
|
||||
an = an + 1
|
||||
tx = tx - 5
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user