diff options
author | Oleg Oshmyan <chortos@inbox.lv> | 2014-05-30 00:15:03 +0100 |
---|---|---|
committer | Oleg Oshmyan <chortos@inbox.lv> | 2014-06-06 15:10:07 +0100 |
commit | 042a22af3cb47a3320083a6b3ca8dbd8e255678d (patch) | |
tree | 124001e3a75ef3d28719452f534465e49af0a7e2 /libass/ass_render.c | |
parent | 76404b71acce6f1b5087eaffc59de4011799453b (diff) | |
download | libass-042a22af3cb47a3320083a6b3ca8dbd8e255678d.tar.bz2 libass-042a22af3cb47a3320083a6b3ca8dbd8e255678d.tar.xz |
Simplify drawing text assignment
Diffstat (limited to 'libass/ass_render.c')
-rw-r--r-- | libass/ass_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 0544930..419dc7b 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1934,7 +1934,7 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, q++; while ((*q != '{') && (*q != 0)) q++; - ass_drawing_add_chars(drawing, p, q - p); + ass_drawing_set_text(drawing, p, q - p); code = 0xfffc; // object replacement character p = q; break; @@ -1961,7 +1961,7 @@ ass_render_event(ASS_Renderer *render_priv, ASS_Event *event, memset(info, 0, sizeof(GlyphInfo)); // Parse drawing - if (drawing->i) { + if (drawing->text) { drawing->scale_x = render_priv->state.scale_x * render_priv->font_scale; drawing->scale_y = render_priv->state.scale_y * |