summaryrefslogtreecommitdiffstats
path: root/options/options.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-05 19:18:08 +0100
committerwm4 <wm4@nowhere>2015-01-05 19:18:08 +0100
commit067bb9605c6333bf9d552d1c12f65ccadbb2fc2f (patch)
treef2c1ab202d0f517f195addbdd7e43116bcb8e5b0 /options/options.h
parent2ab259e6832dff38f13cdaa2a8c83b273efa8ec7 (diff)
downloadmpv-067bb9605c6333bf9d552d1c12f65ccadbb2fc2f.tar.bz2
mpv-067bb9605c6333bf9d552d1c12f65ccadbb2fc2f.tar.xz
sub: add option to not scale subtitles with window
--sub-scale-by-window=no attempts to keep subs always at the same pixel size. The implementation is a bit all over the place, because it compensates already done scaling by an inverse scale factor, but it will probably do its job. Fixes #1424. (The semantics and name of --sub-scale-with-window are kept, and this adds a new option - the name is confusingly similar, but it's actually analogue to --osd-scale-by-window.)
Diffstat (limited to 'options/options.h')
-rw-r--r--options/options.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/options/options.h b/options/options.h
index 5e24a20d1d..1664c3a443 100644
--- a/options/options.h
+++ b/options/options.h
@@ -235,6 +235,8 @@ typedef struct MPOpts {
float osd_bar_h;
float osd_scale;
int osd_scale_by_window;
+ int sub_scale_by_window;
+ int sub_scale_with_window;
struct osd_style_opts *osd_style;
struct osd_style_opts *sub_text_style;
float sub_scale;
@@ -252,7 +254,6 @@ typedef struct MPOpts {
int ass_style_override;
int ass_hinting;
int ass_shaper;
- int sub_scale_with_window;
int sub_clear_on_seek;
int hwdec_api;