Skip to content

Commit

Permalink
sub/osd: signal osd_changed on resize
Browse files Browse the repository at this point in the history
We should update the osd when the window is resized, previously we
weren't signalling for an update.
  • Loading branch information
llyyr authored and sfan5 committed Aug 25, 2023
1 parent ce79976 commit c0fb9b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sub/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c0fb9b4

Please sign in to comment.