diff options
author | wm4 <wm4@nowhere> | 2015-01-16 22:30:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-16 22:30:41 +0100 |
commit | 1883b7cc0c2844a903d51042861fca16eb3fad02 (patch) | |
tree | cbedbd3ecb96a6573d20b771e51ba04124d3a7ee /options | |
parent | c8052da7decba4cbada6c240f2b21c09e385818c (diff) |
player: add --autofit-smaller option
Fixes #1472.
(Maybe these options should have been named --autofit-max and
--autofit-min, but since --autofit-larger already exists, use
--autofit-smaller for symmetry.)
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 1 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 0875e6ded5..9033241605 100644 --- a/options/options.c +++ b/options/options.c @@ -394,6 +394,7 @@ const m_option_t mp_opts[] = { OPT_GEOMETRY("geometry", vo.geometry, 0), OPT_SIZE_BOX("autofit", vo.autofit, 0), OPT_SIZE_BOX("autofit-larger", vo.autofit_larger, 0), + OPT_SIZE_BOX("autofit-smaller", vo.autofit_smaller, 0), OPT_FLAG("force-window-position", vo.force_window_position, 0), // vo name (X classname) and window title strings OPT_STRING("x11-name", vo.winname, 0), diff --git a/options/options.h b/options/options.h index 1664c3a443..3784cf5546 100644 --- a/options/options.h +++ b/options/options.h @@ -26,6 +26,7 @@ typedef struct mp_vo_opts { struct m_geometry geometry; struct m_geometry autofit; struct m_geometry autofit_larger; + struct m_geometry autofit_smaller; int keepaspect; int keepaspect_window; |