From 8417804224c50cad1f03a1662144471b95a76daf Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sun, 6 Aug 2023 13:41:10 -0500 Subject: [PATCH] win32: signal VO_EVENT_DPI on dpi changes The win32 code already updates itself on dpi changes. However, it never signalled mpv's core when this happened which meant that the display-hidpi-scale property never changed. Simply send the VO_EVENT_DPI event when appropriate. Fixes #12081. --- video/out/w32_common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/video/out/w32_common.c b/video/out/w32_common.c index 07ae957be7..08843d6378 100644 --- a/video/out/w32_common.c +++ b/video/out/w32_common.c @@ -563,6 +563,7 @@ static void update_dpi(struct vo_w32_state *w32) w32->dpi = dpi; w32->dpi_scale = w32->opts->hidpi_window_scale ? w32->dpi / 96.0 : 1.0; + signal_events(w32, VO_EVENT_DPI); } static void update_display_info(struct vo_w32_state *w32)