summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--DOCS/man/options.rst6
-rw-r--r--options/options.c3
-rw-r--r--video/out/w32_common.c2
3 files changed, 3 insertions, 8 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 14e58b28e5..9e30ea0f75 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -2995,12 +2995,6 @@ Window
Play video with window border and decorations. Since this is on by
default, use ``--no-border`` to disable the standard window decorations.
-``--fit-border``, ``--no-fit-border``
- (Windows only) Fit the whole window with border and decorations on the
- screen. Since this is on by default, use ``--no-fit-border`` to make mpv
- try to only fit client area with video on the screen. This behavior only
- applied to window/video with size exceeding size of the screen.
-
``--on-all-workspaces``
(X11 and macOS only)
Show the video window on all virtual desktops.
diff --git a/options/options.c b/options/options.c
index 2a168da4e5..45ba410fc9 100644
--- a/options/options.c
+++ b/options/options.c
@@ -113,7 +113,8 @@ static const m_option_t mp_vo_opt_list[] = {
{"ontop-level", OPT_CHOICE(ontop_level, {"window", -1}, {"system", -2},
{"desktop", -3}), M_RANGE(0, INT_MAX)},
{"border", OPT_FLAG(border)},
- {"fit-border", OPT_FLAG(fit_border)},
+ {"fit-border", OPT_FLAG(fit_border),
+ .deprecation_message = "the option is ignored and no longer needed"},
{"on-all-workspaces", OPT_FLAG(all_workspaces)},
{"geometry", OPT_GEOMETRY(geometry)},
{"autofit", OPT_SIZE_BOX(autofit)},
diff --git a/video/out/w32_common.c b/video/out/w32_common.c
index f9778549c6..0f5f7a5370 100644
--- a/video/out/w32_common.c
+++ b/video/out/w32_common.c
@@ -828,7 +828,7 @@ static void fit_window_on_screen(struct vo_w32_state *w32)
return;
RECT screen = get_working_area(w32);
- if (w32->opts->border && w32->opts->fit_border)
+ if (w32->opts->border)
subtract_window_borders(w32, w32->window, &screen);
if (fit_rect(&w32->windowrc, &screen)) {