diff options
author | wm4 <wm4@nowhere> | 2019-12-20 12:48:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-20 13:00:39 +0100 |
commit | ac474631c1b0a3f98b0e4cb22127afe0f8eb9292 (patch) | |
tree | 16a2e0db49987d58869b1fee3d74df1754e2fb05 /video/out | |
parent | 8e620c8e76ec0b8b5b5a0581f3f581cdf86923a4 (diff) | |
download | mpv-ac474631c1b0a3f98b0e4cb22127afe0f8eb9292.tar.bz2 mpv-ac474631c1b0a3f98b0e4cb22127afe0f8eb9292.tar.xz |
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.)
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/x11_common.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |