From 2e31502cb11efa0566fb17f35dcfdf997666ee04 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Mon, 18 Nov 2024 17:00:29 +0100 Subject: [PATCH] console.lua: don't override the offset of opaque boxes With --osd-border-style=opaque-box and background-box, respect --osd-shadow-offset. I am not sure if --osd-shadow-offset should be inherited with --osd-border-style=outline-and-shadow, especially since it doesn't let you specify different x and y offsets. --- player/lua/console.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/lua/console.lua b/player/lua/console.lua index a8e6ac1bca..6f1a66c4d8 100644 --- a/player/lua/console.lua +++ b/player/lua/console.lua @@ -525,10 +525,10 @@ local function update() local font = get_font() local style = '{\\r' .. '\\1a&H00&\\3a&H00&\\1c&Heeeeee&\\3c&H111111&' .. - (has_shadow and '\\4a&H99&\\4c&H000000&' or '') .. + (has_shadow and '\\4a&H99&\\4c&H000000&\\xshad0\\yshad1' or '') .. (font and '\\fn' .. font or '') .. '\\fs' .. opts.font_size .. - '\\bord' .. opts.border_size .. '\\xshad0\\yshad1\\fsp0' .. + '\\bord' .. opts.border_size .. '\\fsp0' .. (selectable_items and '\\q2' or '\\q1') .. '\\clip(' .. clipping_coordinates .. ')}' -- Create the cursor glyph as an ASS drawing. ASS will draw the cursor