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.
This commit is contained in:
llyyr 2023-08-25 09:16:05 +05:30 committed by sfan5
parent ce79976498
commit c0fb9b4b83
1 changed files with 1 additions and 0 deletions

View File

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