add mvi not as submodule

This commit is contained in:
Never Gude 2025-12-31 15:03:07 +01:00
parent 49ebf8a1e1
commit e6714de34b
16 changed files with 1547 additions and 0 deletions

View file

@ -0,0 +1,14 @@
-- credit to TheAMM
local size_changed = false
mp.register_idle(function()
if not size_changed then return end
local ww, wh = mp.get_osd_size()
if not ww or ww <= 0 or not wh or wh <= 0 then return end
mp.set_property("geometry", string.format("%dx%d", ww, wh))
size_changed = false
end)
mp.observe_property("osd-width", "native", function() size_changed = true end)
mp.observe_property("osd-height", "native", function() size_changed = true end)