diff options
author | Grigori Goronzy <greg@blackbox> | 2009-08-23 16:41:36 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-08-23 16:41:36 +0200 |
commit | 2441b10de97b3d52c7d2d2f5f0c92d648e41585d (patch) | |
tree | 7b40666ccce1950ef037198c18e45bc5334819dd /libass | |
parent | 8156d2b83b92eeced64f588f8ee116f00c9f15e2 (diff) | |
download | libass-2441b10de97b3d52c7d2d2f5f0c92d648e41585d.tar.bz2 libass-2441b10de97b3d52c7d2d2f5f0c92d648e41585d.tar.xz |
Fix order of pen advance assignments
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index b6ec7e4b..b5958814 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2737,6 +2737,9 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, get_outline_glyph(render_priv, code, text_info->glyphs + text_info->length, drawing); + text_info->glyphs[text_info->length].pos.x = pen.x; + text_info->glyphs[text_info->length].pos.y = pen.y; + // Add additional space after italic to non-italic style changes if (text_info->length && text_info->glyphs[text_info->length - 1].hash_key.italic && @@ -2748,9 +2751,6 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, pen.x += FFMAX(0, og->bbox.xMax - og->advance.x); } - text_info->glyphs[text_info->length].pos.x = pen.x; - text_info->glyphs[text_info->length].pos.y = pen.y; - pen.x += text_info->glyphs[text_info->length].advance.x; pen.x += double_to_d6(render_priv->state.hspacing * render_priv->font_scale |