mirror of
https://github.com/mpv-player/mpv
synced 2025-04-18 05:07:18 +00:00
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:
parent
3665b8d1d8
commit
9cd2a9fc48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user