summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-11-11 11:24:22 -0600
committerDudemanguy <random342@airmail.cc>2019-11-12 01:00:08 +0000
commitdcc3c2eb3877f9876cc218b1e5f1187b81036c49 (patch)
treedb39b511d425d99420023eb560d34a8b3837bafb
parentb5894e760d7f7b8cd518cf2091cbaa56ece2d018 (diff)
downloadmpv-dcc3c2eb3877f9876cc218b1e5f1187b81036c49.tar.bz2
mpv-dcc3c2eb3877f9876cc218b1e5f1187b81036c49.tar.xz
wayland: use hidpi-window-scale option
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--video/out/wayland_common.c2
2 files changed, 3 insertions, 1 deletions
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;
}