wayland: use hidpi-window-scale option

This commit is contained in:
dudemanguy 2019-11-11 11:24:22 -06:00 committed by Dudemanguy
parent b5894e760d
commit dcc3c2eb38
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}