mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
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``
|
- ``--monitoraspect=16:9`` or ``--monitoraspect=1.7777``
|
||||||
|
|
||||||
``--hidpi-window-scale``, ``--no-hidpi-window-scale``
|
``--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).
|
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
|
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
|
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 {
|
} else {
|
||||||
wl_out = out->output;
|
wl_out = out->output;
|
||||||
wl->current_output = out;
|
wl->current_output = out;
|
||||||
|
if (!vo->opts->hidpi_window_scale)
|
||||||
|
out->scale = 1;
|
||||||
wl->scaling = out->scale;
|
wl->scaling = out->scale;
|
||||||
screenrc = wl->current_output->geometry;
|
screenrc = wl->current_output->geometry;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user