summaryrefslogtreecommitdiffstats
path: root/sub/osd.c
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-08-25 09:16:05 +0530
committersfan5 <sfan5@live.de>2023-08-25 09:34:53 +0200
commitc0fb9b4b83905ff29f2b4c678af431561b5b53be (patch)
treed75474c9208555e800f5f399b85e0e504edb5619 /sub/osd.c
parentce7997649816e4d6c05071fbd4ecac0557120720 (diff)
downloadmpv-c0fb9b4b83905ff29f2b4c678af431561b5b53be.tar.bz2
mpv-c0fb9b4b83905ff29f2b4c678af431561b5b53be.tar.xz
sub/osd: signal osd_changed on resize
We should update the osd when the window is resized, previously we weren't signalling for an update.
Diffstat (limited to 'sub/osd.c')
-rw-r--r--sub/osd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sub/osd.c b/sub/osd.c
index 811b6c821b..fcdc7dd4df 100644
--- a/sub/osd.c
+++ b/sub/osd.c
@@ -253,6 +253,7 @@ static void check_obj_resize(struct osd_state *osd, struct mp_osd_res res,
{
if (!osd_res_equals(res, obj->vo_res)) {
obj->vo_res = res;
+ obj->osd_changed = true;
mp_client_broadcast_event_external(osd->global->client_api,
MP_EVENT_WIN_RESIZE, NULL);
}