From 364c09d11fb1a8e319d8d08d9fd804f7b44317bf Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 20 Jun 2026 13:08:37 +0900 Subject: modified scripts/integrity-check.lua, modified scripts/keep-window-size.lua, modified scripts/slicing.lua, modified scripts/thumbfast.lua --- ar/.config/mpv/scripts/keep-window-size.lua | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'ar/.config/mpv/scripts/keep-window-size.lua') diff --git a/ar/.config/mpv/scripts/keep-window-size.lua b/ar/.config/mpv/scripts/keep-window-size.lua index a7ea077..1b7487c 100644 --- a/ar/.config/mpv/scripts/keep-window-size.lua +++ b/ar/.config/mpv/scripts/keep-window-size.lua @@ -5,19 +5,21 @@ local saved_w = nil local restoring = false mp.observe_property("osd-width", "number", function(_, w) - if w and w > 0 and not restoring then - saved_w = w - end + if w and w > 0 and not restoring then + saved_w = w + end end) mp.register_event("video-reconfig", function() - if not saved_w then return end - local dw = mp.get_property_number("dwidth") - if dw and dw > 0 then - restoring = true - mp.set_property_number("window-scale", saved_w / dw) - mp.add_timeout(0.3, function() - restoring = false - end) - end + if not saved_w then + return + end + local dw = mp.get_property_number("dwidth") + if dw and dw > 0 then + restoring = true + mp.set_property_number("window-scale", saved_w / dw) + mp.add_timeout(0.3, function() + restoring = false + end) + end end) -- cgit v1.2.3