diff options
author | wm4 <wm4@nowhere> | 2012-10-23 21:23:53 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-24 21:56:35 +0200 |
commit | a8824f12ddfe66585db43fb0f92d7c90b5bbd19d (patch) | |
tree | 15398c26109890e8afd077d3d9d4fcf1bede7110 /sub/osd_libass.c | |
parent | 2afd7ebb4e96b91cc552fff5badf237dadb28212 (diff) | |
download | mpv-a8824f12ddfe66585db43fb0f92d7c90b5bbd19d.tar.bz2 mpv-a8824f12ddfe66585db43fb0f92d7c90b5bbd19d.tar.xz |
options: remove --subfont-autoscale (changes default font scale)
The code for this option attempted to emulate the old as-documented
behavior. It wasn't very good at it, and now that the old OSD code has
been removed, it's entirely pointless.
This removes the factor 1.7 with which --subfont-text-scale was
multiplied.
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r-- | sub/osd_libass.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c index 4a6a0c88cb..5f17f2fa6f 100644 --- a/sub/osd_libass.c +++ b/sub/osd_libass.c @@ -65,19 +65,7 @@ static void update_font_style(ASS_Track *track, ASS_Style *style, double factor) style->Encoding = -1; // duplicated from ass_mp.c - double fs = track->PlayResY * factor / 100.; - /* The font size is always proportional to video height only; - * real -subfont-autoscale behavior is not implemented. - * Apply a correction that corresponds to about 4:3 aspect ratio - * video to get a size somewhat closer to what non-libass rendering - * would produce with the same text_font_scale_factor - * and subtitle_autoscale. - */ - if (subtitle_autoscale == 2) - fs *= 1.3; - else if (subtitle_autoscale == 3) - fs *= 1.7; - style->FontSize = fs; + style->FontSize = track->PlayResY * factor / 100.; style->Outline = style->FontSize / 16; } |