summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-14 20:43:00 +0100
committerwm4 <wm4@nowhere>2013-02-14 20:45:44 +0100
commite8181ed9fb9ea49e7def7a0a806b9d516a41168a (patch)
tree2a1d0676ff363cd4364251e4b052e9103a3e0998 /core
parente4d52330affa61457e0b2676c3730110a8ebaa1d (diff)
downloadmpv-e8181ed9fb9ea49e7def7a0a806b9d516a41168a.tar.bz2
mpv-e8181ed9fb9ea49e7def7a0a806b9d516a41168a.tar.xz
osd: add --osd-bar-align-x/y options to control OSD bar position
Diffstat (limited to 'core')
-rw-r--r--core/cfg-mplayer.h2
-rw-r--r--core/options.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 1c0f269e90..1bc01f5230 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -499,6 +499,8 @@ const m_option_t common_opts[] = {
OPT_INTRANGE("ass-hinting", ass_hinting, 0, 0, 7),
OPT_CHOICE("ass-style-override", ass_style_override, 0,
({"no", 0}, {"yes", 1})),
+ OPT_FLOATRANGE("osd-bar-align-x", osd_bar_align_x, 0, -1.0, +1.0),
+ OPT_FLOATRANGE("osd-bar-align-y", osd_bar_align_y, 0, -1.0, +1.0),
OPT_GENERAL("osd", osd_style, M_OPT_PREFIXED,
.type = &m_option_type_subconfig_struct,
.priv = (void*)&osd_style_conf),
diff --git a/core/options.h b/core/options.h
index 87d6711977..f5e350f076 100644
--- a/core/options.h
+++ b/core/options.h
@@ -117,6 +117,8 @@ typedef struct MPOpts {
char **sub_name;
char **sub_paths;
int sub_auto;
+ float osd_bar_align_x;
+ float osd_bar_align_y;
struct osd_style_opts *osd_style;
struct osd_style_opts *sub_text_style;
float sub_scale;