diff options
Diffstat (limited to 'sub')
-rw-r--r-- | sub/sub.c | 16 | ||||
-rw-r--r-- | sub/sub.h | 4 |
2 files changed, 3 insertions, 17 deletions
@@ -280,21 +280,7 @@ void vo_osd_changed(int new_value) if (osd->objs[n]->type == new_value) osd->objs[n]->force_redraw = true; } -} - -bool osd_has_changed(struct osd_state *osd) -{ - for (int n = 0; n < MAX_OSD_PARTS; n++) { - if (osd->objs[n]->force_redraw) - return true; - } - return false; -} - -void osd_reset_changed(struct osd_state *osd) -{ - for (int n = 0; n < MAX_OSD_PARTS; n++) - osd->objs[n]->force_redraw = false; + osd->want_redraw = true; } bool sub_bitmaps_bb(struct sub_bitmaps *imgs, int *x1, int *y1, @@ -126,6 +126,8 @@ struct osd_state { bool render_subs_in_filter; + bool want_redraw; + char *osd_text; // OSDTYPE_OSD int progbar_type, progbar_value; // OSDTYPE_PROGBAR @@ -203,8 +205,6 @@ extern int sub_justify; struct osd_state *osd_create(struct MPOpts *opts, struct ass_library *asslib); void osd_set_text(struct osd_state *osd, const char *text); void vo_osd_changed(int new_value); -void osd_reset_changed(struct osd_state *osd); -bool osd_has_changed(struct osd_state *osd); void osd_free(struct osd_state *osd); enum mp_osd_draw_flags { |