summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
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);