diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sub.c | 3 | ||||
-rw-r--r-- | sub/sub.h | 2 |
2 files changed, 5 insertions, 0 deletions
@@ -222,6 +222,9 @@ void osd_draw(struct osd_state *osd, struct mp_osd_res res, if (draw_flags & OSD_DRAW_SUB_FILTER) draw_flags |= OSD_DRAW_SUB_ONLY; + if (!(draw_flags & OSD_DRAW_SUB_ONLY)) + osd->last_vo_res = res; + for (int n = 0; n < MAX_OSD_PARTS; n++) { struct osd_object *obj = osd->objs[n]; @@ -128,6 +128,8 @@ struct osd_state { bool render_subs_in_filter; bool render_bitmap_subs; + struct mp_osd_res last_vo_res; + bool want_redraw; // OSDTYPE_OSD |