From 6193f723b0aa234bfb5c869d9e2af67b0df0dfef Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Mon, 9 Aug 2021 20:40:53 +0300 Subject: win32: support the property display-hidpi-scale This read-only property reflects the VO's dpi-scale value, and wasn't supported on win32 until now (it is supported on wayland/x11/osx). Currently in mpv it's only used by the builtin script console.lua, and assumed 1 if unavailable. --- video/out/w32_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index c52406de4e..7308371125 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -1720,6 +1720,10 @@ static int gui_thread_control(struct vo_w32_state *w32, int request, void *arg) return VO_TRUE; } + case VOCTRL_GET_HIDPI_SCALE: { + *(double *)arg = w32->dpi_scale; + return VO_TRUE; + } case VOCTRL_GET_UNFS_WINDOW_SIZE: { int *s = arg; -- cgit v1.2.3