fix: cursor line visually not matching cursor when on top of foreground (#150)

This commit is contained in:
christoph-heinrich
2022-08-31 12:24:47 +02:00
committed by GitHub
parent c94914cca1
commit 272a8efb47

View File

@@ -1761,9 +1761,11 @@ function render_timeline(this)
ass:append(time_formatted)
-- Cursor line
-- 0.5 to switch when the pixel is half filled in
local color = ((fax - 0.5) < cursor.x and cursor.x < (fbx + 0.5)) and
options.color_background or options.color_foreground
ass:new_event()
ass:append('{\\blur0\\bord0\\xshad-1\\yshad0\\1c&H' .. options.color_foreground ..
'\\4c&H' .. options.color_background .. '}')
ass:append('{\\blur0\\bord0\\shad0\\1c&H' .. color .. '}')
ass:opacity(0.2)
ass:pos(0, 0)
ass:draw_start()