mirror of https://github.com/mpv-player/mpv
07acdf09b3
--sub-margin-y is documented to scale with font size, which is scaled "by" or "with" window depending on the options. However, when using ass_set_font_scale to change font size, the y margin isn't scaled, so it is still scaled to video size. This causes the y margin size becoming smaller when the video becomes smaller, even when the font size isn't changing. Fix this by also scale the MarginV with the font scale. Also use lrint instead of round. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
filter_jsre.c | ||
filter_regex.c | ||
filter_sdh.c | ||
img_convert.c | ||
img_convert.h | ||
lavc_conv.c | ||
meson.build | ||
osd.c | ||
osd.h | ||
osd_font.otf | ||
osd_libass.c | ||
osd_state.h | ||
sd.h | ||
sd_ass.c | ||
sd_lavc.c |