summaryrefslogtreecommitdiffstats
path: root/libass/ass_parse.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-10-16 22:50:41 +0300
committerOleg Oshmyan <chortos@inbox.lv>2020-10-18 05:03:17 +0300
commit24bff1571420d08bfbcc8754af3d3ea0c0bed4b2 (patch)
tree50b150e5413aaf770e1ffa7b270a1f85a830bdb8 /libass/ass_parse.c
parentb27b97ae52a0af7f4a0f32b32c280d8cc1dae12c (diff)
downloadlibass-24bff1571420d08bfbcc8754af3d3ea0c0bed4b2.tar.bz2
libass-24bff1571420d08bfbcc8754af3d3ea0c0bed4b2.tar.xz
Support line breaks with Banner effect
Make Banner default to \q2, but allow explicit line breaks and \q overrides. Justify the lines according to \a etc., and wrap lines as usual if \q is overridden, but make sure to keep the left/right edge of the whole event flush with the edge of the screen at the event's start time as required by Banner. This is what VSFilter does.
Diffstat (limited to 'libass/ass_parse.c')
-rw-r--r--libass/ass_parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libass/ass_parse.c b/libass/ass_parse.c
index 56a02be..8347cf2 100644
--- a/libass/ass_parse.c
+++ b/libass/ass_parse.c
@@ -908,6 +908,7 @@ void apply_transition_effects(ASS_Renderer *render_priv, ASS_Event *event)
render_priv->state.scroll_shift =
(render_priv->time - render_priv->state.event->Start) / delay;
render_priv->state.evt_type = EVENT_HSCROLL;
+ render_priv->state.wrap_style = 2;
return;
}