summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-04 17:16:28 +0200
committerwm4 <wm4@nowhere>2012-10-16 07:26:31 +0200
commit34b3a9c5e97dfae87afab64915dec624439eafa6 (patch)
treec9b61a00cae21a9398ae885a0f54ce30d20f528f /command.c
parent2db0d229efc1ba53e33bb3c110ec591246f0c83a (diff)
downloadmpv-34b3a9c5e97dfae87afab64915dec624439eafa6.tar.bz2
mpv-34b3a9c5e97dfae87afab64915dec624439eafa6.tar.xz
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.
Diffstat (limited to 'command.c')
-rw-r--r--command.c6
1 files changed, 4 insertions, 2 deletions
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)