Skip to content

Commit

Permalink
Merge pull request #35 from Xurdejl/fix/logo-scaling
Browse files Browse the repository at this point in the history
fix: wrong scaling on idle logo
  • Loading branch information
cyl0 authored Dec 2, 2022
2 parents 357951a + 86c00a2 commit c3a0044
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit c3a0044

Please sign in to comment.