summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authormaniak1349 <maniak1349@gmail.com>2016-04-26 04:46:49 +0300
committerwm4 <wm4@nowhere>2016-04-30 18:55:09 +0200
commit70f64f3ca97e333d6a9a874f574710c09f6979b2 (patch)
tree1f0e0d60d0c7cb6d7b9d12fcafd07d80ba4c1186 /options
parent5c90352ae6b3d86f1ad70e2d47b9898cccc3f372 (diff)
downloadmpv-70f64f3ca97e333d6a9a874f574710c09f6979b2.tar.bz2
mpv-70f64f3ca97e333d6a9a874f574710c09f6979b2.tar.xz
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.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
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,
diff --git a/options/options.h b/options/options.h
index 95268cd522..6f21c0c683 100644
--- a/options/options.h
+++ b/options/options.h
@@ -12,6 +12,7 @@ typedef struct mp_vo_opts {
int ontop;
int fullscreen;
int border;
+ int fit_border;
int all_workspaces;
int screen_id;