mirror of https://github.com/mpv-player/mpv
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:
parent
de371a579f
commit
691a25de38
|
@ -2851,6 +2851,7 @@ mp.observe_property("osd-dimensions", "native", function()
|
||||||
-- we might have to worry about property update ordering)
|
-- we might have to worry about property update ordering)
|
||||||
request_init_resize()
|
request_init_resize()
|
||||||
end)
|
end)
|
||||||
|
mp.observe_property('osd-scale-by-window', 'native', request_init_resize)
|
||||||
|
|
||||||
-- mouse show/hide bindings
|
-- mouse show/hide bindings
|
||||||
mp.set_key_bindings({
|
mp.set_key_bindings({
|
||||||
|
|
Loading…
Reference in New Issue