summaryrefslogtreecommitdiffstats
path: root/libass/ass_render.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2020-10-19 16:25:58 +0300
committerOleg Oshmyan <chortos@inbox.lv>2020-10-27 01:24:26 +0200
commit512444c15e69a78ae82a8e9ff0e7bdef9f93bbcf (patch)
tree39950ed1dbc6fbf50edbdb1ce912f9debf4e659d /libass/ass_render.c
parent7440eb75f12104b1cdd36638ccb16934db067b0c (diff)
downloadlibass-512444c15e69a78ae82a8e9ff0e7bdef9f93bbcf.tar.bz2
libass-512444c15e69a78ae82a8e9ff0e7bdef9f93bbcf.tar.xz
Improve \kf position rounding
Diffstat (limited to 'libass/ass_render.c')
-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 e8254f2..fbe2765 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -2417,7 +2417,7 @@ static void render_and_combine_glyphs(ASS_Renderer *render_priv,
}
if (info->effect_type == EF_KARAOKE_KF)
- info->effect_timing += d6_to_int(info->leftmost_x);
+ info->effect_timing = d6_to_int(info->leftmost_x + info->effect_timing);
for (int j = 0; j < info->bitmap_count; j++) {
info->bitmaps[j].pos.x -= info->x;