From ac474631c1b0a3f98b0e4cb22127afe0f8eb9292 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 20 Dec 2019 12:48:48 +0100 Subject: x11: implement hidpi scale reporting (X11 does not support different per-screen DPI (or only via hacks), so this is pretty simple. If other backends are going to implement this, then they should send VO_EVENT_WIN_STATE if the DPI for the mpv window changes by moving it to another screen or such.) --- video/out/x11_common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 8c37074e0b..8d03c43af3 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1963,6 +1963,9 @@ int vo_x11_control(struct vo *vo, int *events, int request, void *arg) *(double *)arg = fps; return VO_TRUE; } + case VOCTRL_GET_HIDPI_SCALE: + *(double *)arg = x11->dpi_scale; + return VO_TRUE; } return VO_NOTIMPL; } -- cgit v1.2.3