Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: wrong scaling on idle logo #35

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions mordenx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2123,9 +2123,10 @@ function process_event(source, what)
end

function show_logo()
local osd_w, osd_h = 640, 360
local logo_x, logo_y = osd_w/2, osd_h/2-20
local ass = assdraw.ass_new()
local osd_w, osd_h, osd_aspect = mp.get_osd_size()
osd_w, osd_h = 360*osd_aspect, 360
local logo_x, logo_y = osd_w/2, osd_h/2-20
local ass = assdraw.ass_new()
ass:new_event()
ass:pos(logo_x, logo_y)
ass:append('{\\1c&H8E348D&\\3c&H0&\\3a&H60&\\blur1\\bord0.5}')
Expand Down