mirror of https://github.com/mpv-player/mpv
wayland: use hidpi-window-scale option
This commit is contained in:
parent
b5894e760d
commit
dcc3c2eb38
|
@ -2850,7 +2850,7 @@ Window
|
|||
- ``--monitoraspect=16:9`` or ``--monitoraspect=1.7777``
|
||||
|
||||
``--hidpi-window-scale``, ``--no-hidpi-window-scale``
|
||||
(OS X and X11 only)
|
||||
(OS X, X11, and Wayland only)
|
||||
Scale the window size according to the backing scale factor (default: yes).
|
||||
On regular HiDPI resolutions the window opens with double the size but appears
|
||||
as having the same size as on none-HiDPI resolutions. This is the default OS X
|
||||
|
|
|
@ -1251,6 +1251,8 @@ int vo_wayland_reconfig(struct vo *vo)
|
|||
} else {
|
||||
wl_out = out->output;
|
||||
wl->current_output = out;
|
||||
if (!vo->opts->hidpi_window_scale)
|
||||
out->scale = 1;
|
||||
wl->scaling = out->scale;
|
||||
screenrc = wl->current_output->geometry;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue