mirror of
https://github.com/mpv-player/mpv
synced 2025-02-07 07:31:48 +00:00
options: remove --screenw and --screenh
Doesn't make any sense anymore. X11 (which was mentioned in the manpage) autodetects it, and everything else ignored the option values. Since for incomprehensible reasons the backends and vo.c still need to exchange information about the screensize using the option fields, they're not removed yet.
This commit is contained in:
parent
905029ec0c
commit
ad654f3803
@ -2027,14 +2027,6 @@ OPTIONS
|
||||
``%%``
|
||||
Replaced with the ``%`` character itself.
|
||||
|
||||
``--screenh=<pixels>``
|
||||
Specify the screen height for video output drivers which do not know the
|
||||
screen resolution, like ``x11`` and TV-out.
|
||||
|
||||
``--screenw=<pixels>``
|
||||
Specify the screen width for video output drivers which do not know the
|
||||
screen resolution, like ``x11`` and TV-out.
|
||||
|
||||
``--secondary-sid=<ID|auto|no>``
|
||||
Select a secondary subtitle stream. This is similar to ``--sid``. If a
|
||||
secondary subtitle is selected, it will be rendered as toptitle (i.e. on
|
||||
|
@ -473,9 +473,6 @@ const m_option_t mp_opts[] = {
|
||||
OPT_STRING("volume-restore-data", mixer_restore_volume_data, 0),
|
||||
OPT_FLAG("gapless-audio", gapless_audio, 0),
|
||||
|
||||
// set screen dimensions (when not detectable or virtual!=visible)
|
||||
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),
|
||||
|
@ -524,13 +524,8 @@ int vo_x11_init(struct vo *vo)
|
||||
|
||||
init_atoms(vo->x11);
|
||||
|
||||
x11->ws_width = opts->screenwidth;
|
||||
x11->ws_height = opts->screenheight;
|
||||
|
||||
if (!x11->ws_width)
|
||||
x11->ws_width = DisplayWidth(x11->display, x11->screen);
|
||||
if (!x11->ws_height)
|
||||
x11->ws_height = DisplayHeight(x11->display, x11->screen);
|
||||
x11->ws_width = DisplayWidth(x11->display, x11->screen);
|
||||
x11->ws_height = DisplayHeight(x11->display, x11->screen);
|
||||
|
||||
opts->screenwidth = x11->ws_width;
|
||||
opts->screenheight = x11->ws_height;
|
||||
|
Loading…
Reference in New Issue
Block a user