From 34b3a9c5e97dfae87afab64915dec624439eafa6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 4 Oct 2012 17:16:28 +0200 Subject: sub, VO: remove vo_osd_resized() function VOs which could render the OSD in window size (as opposed to video size, like vo_xv) and which could cache the OSD called this when the window size changed. This was needed, because VOs used another OSD function to check whether the OSD changed before passing the new window size to the OSD code. This was really just an artifact of OSD change detection, and now that the affected VOs use the new OSD rendering API, it's done automatically. --- command.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 1cffedfd13..5f15cecf62 100644 --- a/command.c +++ b/command.c @@ -1598,7 +1598,8 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg, if (opts->ass_enabled) opts->ass_font_scale = *(float *) arg; text_font_scale_factor = *(float *) arg; - vo_osd_resized(); + vo_osd_changed(OSDTYPE_SUBTITLE); + vo_osd_changed(OSDTYPE_OSD); return M_PROPERTY_OK; case M_PROPERTY_STEP_UP: case M_PROPERTY_STEP_DOWN: @@ -1610,7 +1611,8 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg, text_font_scale_factor += (arg ? *(float *) arg : 0.1) * (action == M_PROPERTY_STEP_UP ? 1.0 : -1.0); M_PROPERTY_CLAMP(prop, text_font_scale_factor); - vo_osd_resized(); + vo_osd_changed(OSDTYPE_SUBTITLE); + vo_osd_changed(OSDTYPE_OSD); return M_PROPERTY_OK; default: if (opts->ass_enabled) -- cgit v1.2.3