~guidocella/mpv-image-config

383d76ca7bdee70e98d08003a1d3598b09047b81 — Guido Cella 6 months ago 392b6e4
Revert "remove image check for aligning large images"

This reverts commit 01d84f60131383dd54397cd332ed073b31958bb0.
1 files changed, 5 insertions(+), 0 deletions(-)

M scripts/align-images.lua
M scripts/align-images.lua => scripts/align-images.lua +5 -0
@@ 6,6 6,11 @@ require 'mp.options'.read_options(options, nil, function () end)

-- Align the OSD to the top right corner of images bigger than the OSD.
mp.register_event('video-reconfig', function ()
    -- Don't realign videos so they are centered after increasing panscan.
    if not mp.get_property_native('current-tracks/video/image') then
        return
    end

    local dims = mp.get_property_native('osd-dimensions')

    if dims.ml + dims.mr < 0 then