diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/osd.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -32,6 +32,8 @@ #include "options/options.h" #include "common/global.h" #include "common/msg.h" +#include "player/client.h" +#include "player/command.h" #include "osd.h" #include "osd_state.h" #include "dec_sub.h" @@ -238,9 +240,12 @@ static void render_object(struct osd_state *osd, struct osd_object *obj, *out_imgs = (struct sub_bitmaps) {0}; - if (!osd_res_equals(res, obj->vo_res)) + if (!osd_res_equals(res, obj->vo_res)) { + obj->vo_res = res; obj->force_redraw = true; - obj->vo_res = res; + mp_client_broadcast_event(mp_client_api_get_core(osd->global->client_api), + MP_EVENT_WIN_RESIZE, NULL); + } if (obj->type == OSDTYPE_SUB || obj->type == OSDTYPE_SUB2) { if (obj->sub) { |