console.lua: don't render a 2nd cursor on the OSC

09ea3a424f 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.
This commit is contained in:
Guido Cella 2022-05-01 12:38:24 +02:00 committed by James Ross-Gowan
parent 9ffaa6b81b
commit ebaf6a6cfa
1 changed files with 1 additions and 1 deletions

View File

@ -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)