summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorGuido Cella <guido@guidocella.xyz>2022-05-01 12:38:24 +0200
committerJames Ross-Gowan <rossy@jrg.systems>2022-05-01 21:48:20 +1000
commitebaf6a6cfa24a78d9041389974568b9db7df6a71 (patch)
treecfa2fdaed16edf853d139568a7ff5853afe87fa4 /player/lua
parent9ffaa6b81bb78d9813b2f10ea56e51b700660e2d (diff)
downloadmpv-ebaf6a6cfa24a78d9041389974568b9db7df6a71.tar.bz2
mpv-ebaf6a6cfa24a78d9041389974568b9db7df6a71.tar.xz
console.lua: don't render a 2nd cursor on the OSC
09ea3a424fe moved the console above the OSC when it is visible so they don't overlap, but only changed the first ass:pos() call and forgot to update the second one, which redraws the cursor on top of the text, so when both the OSC and the console are visible, a second cursor is drawn on the OSC. You have to type past where the buttons are to notice it. This commit synchronizes the position of the 2 ASS events.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/console.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/console.lua b/player/lua/console.lua
index 6401e26850..f9397e06f5 100644
--- a/player/lua/console.lua
+++ b/player/lua/console.lua
@@ -188,7 +188,7 @@ function update()
-- cursor appear in front of the text.
ass:new_event()
ass:an(1)
- ass:pos(2, screeny - 2)
+ ass:pos(2, screeny - 2 - global_margin_y * screeny)
ass:append(style .. '{\\alpha&HFF&}> ' .. before_cur)
ass:append(cglyph)
ass:append(style .. '{\\alpha&HFF&}' .. after_cur)