summaryrefslogtreecommitdiffstats
path: root/video
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 /video
parentb5894e760d7f7b8cd518cf2091cbaa56ece2d018 (diff)
downloadmpv-dcc3c2eb3877f9876cc218b1e5f1187b81036c49.tar.bz2
mpv-dcc3c2eb3877f9876cc218b1e5f1187b81036c49.tar.xz
wayland: use hidpi-window-scale option
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 2 insertions, 0 deletions
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;
}