Skip to content

Commit

Permalink
console.lua: don't override the offset of opaque boxes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guidocella authored and kasper93 committed Nov 18, 2024
1 parent b71ab51 commit 2e31502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions player/lua/console.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e31502

Please sign in to comment.