1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00

osc.lua: handle osd-scale-by-window runtime update

Allows the scale mode to be changed at runtime if vidscale is set to auto.
This commit is contained in:
nanahi 2024-05-16 12:34:59 -04:00 committed by Kacper Michajłow
parent de371a579f
commit 691a25de38

View File

@ -2851,6 +2851,7 @@ mp.observe_property("osd-dimensions", "native", function()
-- we might have to worry about property update ordering)
request_init_resize()
end)
mp.observe_property('osd-scale-by-window', 'native', request_init_resize)
-- mouse show/hide bindings
mp.set_key_bindings({