diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-06 13:41:10 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-06 19:09:44 +0000 |
commit | 8417804224c50cad1f03a1662144471b95a76daf (patch) | |
tree | d94e515f9f8d570dee5e3a972bf34583f91b320f /video | |
parent | 10087b408604c62cf028772e423fdad8bc8f71c2 (diff) | |
download | mpv-8417804224c50cad1f03a1662144471b95a76daf.tar.bz2 mpv-8417804224c50cad1f03a1662144471b95a76daf.tar.xz |
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.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/w32_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |