mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
commands: property sub_scale: update old subs immediately
When using the "old" subtitle renderer (i.e. not libass), changes to this property were not reflected immediately, and came into effect only when the next subtitle event was rendered.
This commit is contained in:
parent
d52acba688
commit
d843c9ca38
@ -2017,6 +2017,7 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg,
|
||||
#endif
|
||||
text_font_scale_factor = *(float *) arg;
|
||||
force_load_font = 1;
|
||||
vo_osd_changed(OSDTYPE_SUBTITLE);
|
||||
return M_PROPERTY_OK;
|
||||
case M_PROPERTY_STEP_UP:
|
||||
case M_PROPERTY_STEP_DOWN:
|
||||
@ -2032,6 +2033,7 @@ static int mp_property_sub_scale(m_option_t *prop, int action, void *arg,
|
||||
(action == M_PROPERTY_STEP_UP ? 1.0 : -1.0);
|
||||
M_PROPERTY_CLAMP(prop, text_font_scale_factor);
|
||||
force_load_font = 1;
|
||||
vo_osd_changed(OSDTYPE_SUBTITLE);
|
||||
return M_PROPERTY_OK;
|
||||
default:
|
||||
#ifdef CONFIG_ASS
|
||||
|
Loading…
Reference in New Issue
Block a user