Skip to content

Commit

Permalink
osc.lua: handle osd-scale-by-window runtime update
Browse files Browse the repository at this point in the history
Allows the scale mode to be changed at runtime if vidscale is set to auto.
  • Loading branch information
na-na-hi committed May 16, 2024
1 parent de27991 commit 32c139c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions player/lua/osc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 32c139c

Please sign in to comment.