From e8181ed9fb9ea49e7def7a0a806b9d516a41168a Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 14 Feb 2013 20:43:00 +0100 Subject: osd: add --osd-bar-align-x/y options to control OSD bar position --- core/cfg-mplayer.h | 2 ++ core/options.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'core') 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; -- cgit v1.2.3