History

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.

Guido Cella committed 1 year ago

Commit 2e315021 parent b71ab511 file · +2 −2Browse files

Unified · Split

player/lua/console.lua+2−2
@@ -525,10 +525,10 @@ local function update() · 524 unmodified lines
525 local font = get_font()525 local font = get_font()
526 local style = '{\\r' ..526 local style = '{\\r' ..
527 '\\1a&H00&\\3a&H00&\\1c&Heeeeee&\\3c&H111111&' ..527 '\\1a&H00&\\3a&H00&\\1c&Heeeeee&\\3c&H111111&' ..
528 (has_shadow and '\\4a&H99&\\4c&H000000&' or '') ..528 (has_shadow and '\\4a&H99&\\4c&H000000&\\xshad0\\yshad1' or '') ..
529 (font and '\\fn' .. font or '') ..529 (font and '\\fn' .. font or '') ..
530 '\\fs' .. opts.font_size ..530 '\\fs' .. opts.font_size ..
531 '\\bord' .. opts.border_size .. '\\xshad0\\yshad1\\fsp0' ..531 '\\bord' .. opts.border_size .. '\\fsp0' ..
532 (selectable_items and '\\q2' or '\\q1') ..532 (selectable_items and '\\q2' or '\\q1') ..
533 '\\clip(' .. clipping_coordinates .. ')}'533 '\\clip(' .. clipping_coordinates .. ')}'
534 -- Create the cursor glyph as an ASS drawing. ASS will draw the cursor534 -- Create the cursor glyph as an ASS drawing. ASS will draw the cursor

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t