From 7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 8 Jan 2020 20:23:12 +0100 Subject: command, vo: add a mechanism for runtime DPI scale changes Follow up to commit a58585d5e063. It turned out that the OSX backend needs this. --- player/playloop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index 86738e4ed0..8a287bfadf 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -847,6 +847,8 @@ static void handle_vo_events(struct MPContext *mpctx) mp_notify(mpctx, MP_EVENT_WIN_RESIZE, NULL); if (events & VO_EVENT_WIN_STATE) mp_notify(mpctx, MP_EVENT_WIN_STATE, NULL); + if (events & VO_EVENT_DPI) + mp_notify(mpctx, MP_EVENT_WIN_STATE2, NULL); } static void handle_sstep(struct MPContext *mpctx) -- cgit v1.2.3