From 32c139c5caa8d35c38c1748a1f6fbfa54ff21d8a Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Thu, 16 May 2024 12:34:59 -0400 Subject: [PATCH] osc.lua: handle osd-scale-by-window runtime update Allows the scale mode to be changed at runtime if vidscale is set to auto. --- player/lua/osc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index d1ad14a84aa7e..0859afc9ba603 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -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({