1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00

osc: render seek ranges a bit less ugly

This commit is contained in:
ChrisK2 2017-11-02 22:00:12 +01:00
parent 1d9057cb9a
commit 89513d26a2

View File

@ -600,7 +600,7 @@ function render_elements(master_ass)
for _,range in pairs(seekRanges) do
local pstart = get_slider_ele_pos_for(element, range["start"])
local pend = get_slider_ele_pos_for(element, range["end"])
elem_ass:rect_cw(pstart, 0, pend, 5)
elem_ass:rect_ccw(pstart, (elem_geo.h/2)-1, pend, (elem_geo.h/2) + 1)
end
end