diff options
author | wm4 <wm4@nowhere> | 2012-10-03 17:00:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-16 07:26:31 +0200 |
commit | 8f8f6e6d9d27eef37640b363214a775647a0f2f4 (patch) | |
tree | 64c78eebb58a563ce8d6d02559dcff6e30520276 /sub/ass_mp.c | |
parent | cf61928eecd87ba29324e501a3e4a0efde25d874 (diff) | |
download | mpv-8f8f6e6d9d27eef37640b363214a775647a0f2f4.tar.bz2 mpv-8f8f6e6d9d27eef37640b363214a775647a0f2f4.tar.xz |
sub: remove logic for disabling hinting on scaled EOSD
This was an extremely obscure setting, as it was used only with vo_gl
if its scaled-osd suboption was used. If you really want this, you can
set the desired ass-hinting value directly, and there will be literally
no loss in functionality.
Note that this didn't actually test whether the EOSD was scaled.
Basically, it only checked whether vo_gl had the scaled-osd suboption
set.
Diffstat (limited to 'sub/ass_mp.c')
-rw-r--r-- | sub/ass_mp.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sub/ass_mp.c b/sub/ass_mp.c index 5766a847f8..ba93c4c842 100644 --- a/sub/ass_mp.c +++ b/sub/ass_mp.c @@ -226,17 +226,14 @@ ASS_Track *mp_ass_read_stream(ASS_Library *library, const char *fname, } void mp_ass_configure(ASS_Renderer *priv, struct MPOpts *opts, - struct mp_eosd_res *dim, bool unscaled) + struct mp_eosd_res *dim) { int hinting; ass_set_frame_size(priv, dim->w, dim->h); ass_set_margins(priv, dim->mt, dim->mb, dim->ml, dim->mr); ass_set_use_margins(priv, opts->ass_use_margins); ass_set_font_scale(priv, opts->ass_font_scale); - if (!unscaled && (opts->ass_hinting & 4)) - hinting = 0; - else - hinting = opts->ass_hinting & 3; + hinting = opts->ass_hinting & 3; // +4 was for no hinting if scaled ass_set_hinting(priv, hinting); ass_set_line_spacing(priv, opts->ass_line_spacing); } |