summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2020-05-17 00:05:52 +0200
committerOleg Oshmyan <chortos@inbox.lv>2020-07-05 22:46:30 +0300
commit21f15f0ad3d02d44790275a7eb27125c02556baa (patch)
treed32a73545ac66ad0b15ce719e93bdeccfd703137 /libass
parentdbb76629145567458c683823a1c20a3c6c2aae64 (diff)
downloadlibass-21f15f0ad3d02d44790275a7eb27125c02556baa.tar.bz2
libass-21f15f0ad3d02d44790275a7eb27125c02556baa.tar.xz
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
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);