From 7885fce7ea68d4c64e034b152f2a0b08bb648adc Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Jan 2013 10:56:36 +0100 Subject: video: add --autofit and --autofit-larger options --autofit=WxH sets the window size to a maximum width and/or height, without changing the window's aspect ratio. --autofit-larger=WxH does the same, but only if the video size is actually larger than the window size that would result when using the --autofit=WxH option with the same arguments. --- core/cfg-mplayer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/cfg-mplayer.h') diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h index 5264784a56..54fa3f3ab5 100644 --- a/core/cfg-mplayer.h +++ b/core/cfg-mplayer.h @@ -586,6 +586,8 @@ const m_option_t mplayer_opts[]={ OPT_INTRANGE("screenw", vo_screenwidth, CONF_GLOBAL, 0, 4096), OPT_INTRANGE("screenh", vo_screenheight, CONF_GLOBAL, 0, 4096), OPT_GEOMETRY("geometry", vo_geometry, 0), + OPT_SIZE_BOX("autofit", vo_autofit, 0), + OPT_SIZE_BOX("autofit-larger", vo_autofit_larger, 0), OPT_MAKE_FLAGS("force-window-position", force_window_position, 0), // vo name (X classname) and window title strings OPT_STRING("name", vo_winname, 0), -- cgit v1.2.3