From dcc3c2eb3877f9876cc218b1e5f1187b81036c49 Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Mon, 11 Nov 2019 11:24:22 -0600 Subject: [PATCH] wayland: use hidpi-window-scale option --- DOCS/man/options.rst | 2 +- video/out/wayland_common.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst index 4c208fe025..d4e3bb5c7c 100644 --- a/DOCS/man/options.rst +++ b/DOCS/man/options.rst @@ -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 diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 09f626a216..2007836a3b 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -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; }