From ebaf6a6cfa24a78d9041389974568b9db7df6a71 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sun, 1 May 2022 12:38:24 +0200 Subject: 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. --- player/lua/console.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player') 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) -- cgit v1.2.3