~guidocella/mpv-image-config

8c3d03310a8878748f2f6929f5057d57857c4285 — Guido Cella 8 months ago 513262f
don't get a fallback for osd-dimensions

This doesn't make sense since when dims.w and h are 0 mt mb ml and mr are
also 0 (it was necessary before but I don't remember why, maybe for
first_unscaled).
1 files changed, 0 insertions(+), 5 deletions(-)

M scripts/align-images.lua
M scripts/align-images.lua => scripts/align-images.lua +0 -5
@@ 11,11 11,6 @@ mp.register_event('video-reconfig', function ()
    end

    local dims = mp.get_property_native('osd-dimensions')
    -- osd-width and osd-height can be unavailable when the first image loads.
    if dims.w == 0 then
        dims.w = mp.get_property_native('display-width')
        dims.h = mp.get_property_native('display-height')
    end

    if dims.ml + dims.mr < 0 then
        mp.set_property('video-align-x', options.align_x)