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.
This commit is contained in:
Dudemanguy 2023-08-06 13:41:10 -05:00
parent 10087b4086
commit 8417804224
1 changed files with 1 additions and 0 deletions

View File

@ -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)