summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-01-08 20:23:12 +0100
committerder richter <der.richter@gmx.de>2020-01-09 19:13:42 +0100
commit7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95 (patch)
tree08eb3aa373e6b510817675cf6855344f42ecd615 /player/playloop.c
parent57f9de7b53f7cb5a671d04e4204aaa3ad7f8875e (diff)
downloadmpv-7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95.tar.bz2
mpv-7bb3f53cf5720cb1ed8c88ff91eb82cde5eb6b95.tar.xz
command, vo: add a mechanism for runtime DPI scale changes
Follow up to commit a58585d5e063. It turned out that the OSX backend needs this.
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c2
1 files changed, 2 insertions, 0 deletions
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)