Skip to content
Snippets Groups Projects

vout_subpicture: fix "fit inside" SPU computation

Merged Steve Lhomme requested to merge robUx4/vlc:small-spu into master
  1. Feb 04, 2025
    • Steve Lhomme's avatar
      vout_subpicture: fix "fit inside" SPU computation · 0df6fa14
      Steve Lhomme authored
      The restrained size is in source unscaled coordinates
      when apply_scale is not set.
      We need to unscale the output dimensions to check if it fits inside in that case.
      
      Fixes positioning of SPU's when the window is smaller than the source.
      
      Plus rename SpuAreaFitInside() to SpuAreaMoveInside() as it's not fitting, ie
      stretching anything, just moving the subpicture (and probably shouldn't for
      absolute placement anyway).
      0df6fa14
Loading