Last active
July 1, 2020 04:01
-
-
Save garoto/920b7456d2bdd8f48aa8e7094a12ce47 to your computer and use it in GitHub Desktop.
Restore old "window-scale" behavior, so to make "add window-scale +/-<value>" keybinds work again when paired with autofit-* options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fix_window_scale() | |
local cws = mp.get_property("current-window-scale") | |
if cws then mp.set_property("window-scale", cws) end | |
end | |
mp.register_event( | |
"file-loaded", function () mp.add_timeout(1, fix_window_scale) | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment