diff options
author | wm4 <wm4@nowhere> | 2013-12-10 19:58:57 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-10 20:07:39 +0100 |
commit | 7c7d214775f87e82312aa1441d59ddf7c0df9d2e (patch) | |
tree | a398eb6f7e1368c5f4c5ec2c4684f83c0f017e13 /mpvcore | |
parent | bf003033e376b34779373565595f2863fe3c4dd6 (diff) | |
download | mpv-7c7d214775f87e82312aa1441d59ddf7c0df9d2e.tar.bz2 mpv-7c7d214775f87e82312aa1441d59ddf7c0df9d2e.tar.xz |
osd: add option for "unscaled" OSD
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/options.c | 2 | ||||
-rw-r--r-- | mpvcore/options.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/mpvcore/options.c b/mpvcore/options.c index 5ddf38612c..97a5a5e6dc 100644 --- a/mpvcore/options.c +++ b/mpvcore/options.c @@ -658,6 +658,7 @@ const m_option_t mp_opts[] = { OPT_INTRANGE("osd-duration", osd_duration, 0, 0, 3600000), OPT_FLAG("osd-fractions", osd_fractions, 0), OPT_FLOATRANGE("osd-scale", osd_scale, 0, 0, 100), + OPT_FLAG("osd-scale-by-window", osd_scale_by_window, 0), OPT_DOUBLE("sstep", step_sec, CONF_MIN, 0), @@ -797,6 +798,7 @@ const struct MPOpts mp_default_opts = { .osd_bar_w = 75.0, .osd_bar_h = 3.125, .osd_scale = 1, + .osd_scale_by_window = 1, .lua_load_osc = 1, .loop_times = -1, .ordered_chapters = 1, diff --git a/mpvcore/options.h b/mpvcore/options.h index 4057ea882c..f421fcccb5 100644 --- a/mpvcore/options.h +++ b/mpvcore/options.h @@ -189,6 +189,7 @@ typedef struct MPOpts { float osd_bar_w; float osd_bar_h; float osd_scale; + int osd_scale_by_window; struct osd_style_opts *osd_style; struct osd_style_opts *sub_text_style; float sub_scale; |