From 70f64f3ca97e333d6a9a874f574710c09f6979b2 Mon Sep 17 00:00:00 2001 From: maniak1349 Date: Tue, 26 Apr 2016 04:46:49 +0300 Subject: options: add --fit-border video option Flag that is set by default. Reseting it will result in mpv trying to fit client area with video instead of the whole window with border and decorations on the screen. Marked as (Windows only) for now until it's implemented on other platforms. --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index 30ae218ba2..16725e0478 100644 --- a/options/options.c +++ b/options/options.c @@ -399,6 +399,7 @@ const m_option_t mp_opts[] = { ({"no", 0}, {"yes", 1}, {"immediate", 2})), OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED), OPT_FLAG("border", vo.border, M_OPT_FIXED), + OPT_FLAG("fit-border", vo.fit_border, M_OPT_FIXED), OPT_FLAG("on-all-workspaces", vo.all_workspaces, M_OPT_FIXED), OPT_FLAG("window-dragging", allow_win_drag, CONF_GLOBAL), @@ -708,6 +709,7 @@ const struct MPOpts mp_default_opts = { .keepaspect = 1, .keepaspect_window = 1, .border = 1, + .fit_border = 1, .WinID = -1, .window_scale = 1.0, .x11_bypass_compositor = 0, -- cgit v1.2.3