diff options
author | Guido Cella <guido@guidocella.xyz> | 2022-05-01 12:38:24 +0200 |
---|---|---|
committer | James Ross-Gowan <rossy@jrg.systems> | 2022-05-01 21:48:20 +1000 |
commit | ebaf6a6cfa24a78d9041389974568b9db7df6a71 (patch) | |
tree | cfa2fdaed16edf853d139568a7ff5853afe87fa4 | |
parent | 9ffaa6b81bb78d9813b2f10ea56e51b700660e2d (diff) | |
download | mpv-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.
-rw-r--r-- | player/lua/console.lua | 2 |
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) |