From 21f15f0ad3d02d44790275a7eb27125c02556baa Mon Sep 17 00:00:00 2001 From: Oneric Date: Sun, 17 May 2020 00:05:52 +0200 Subject: Match *VSF's shift direction for \an(4|5|6) closes #143 As libass doesn't support the 'Collsions' header, we are only concerned with the default stacking direction of *VSF here --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libass') diff --git a/libass/ass_render.c b/libass/ass_render.c index 0d0a9ef..6cbe292 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2754,7 +2754,7 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, event_images->width = (bbox.x_max - bbox.x_min) * render_priv->font_scale_x + 0.5; event_images->detect_collisions = render_priv->state.detect_collisions; - event_images->shift_direction = (valign == VALIGN_TOP) ? 1 : -1; + event_images->shift_direction = (valign == VALIGN_SUB) ? -1 : 1; event_images->event = event; event_images->imgs = render_text(render_priv); -- cgit v1.2.3