From 1883b7cc0c2844a903d51042861fca16eb3fad02 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 16 Jan 2015 22:30:32 +0100 Subject: 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.) --- options/options.c | 1 + options/options.h | 1 + 2 files changed, 2 insertions(+) (limited to 'options') 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; -- cgit v1.2.3