From 917e02edda4392b465ffa179628a5032ff969900 Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Sat, 27 Jun 2009 06:11:59 +0200 Subject: [PATCH] Cosmetics: minor cleanup in ass_render_events --- libass/ass_render.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 14f2db1..30e68cc 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -2198,7 +2198,7 @@ ass_render_event(ass_renderer_t *render_priv, ass_event_t *event, unsigned code; double_bbox_t bbox; int i, j; - FT_Vector shift; + FT_Vector shift = { .x = 0, .y = 0}; int MarginL, MarginR, MarginV; int last_break; int alignment, halign, valign; @@ -2266,10 +2266,6 @@ ass_render_event(ass_renderer_t *render_priv, ass_event_t *event, pen.y += delta.y * render_priv->state.scale_y; } - // We won't shift anymore... - shift.x = 0; - shift.y = 0; - ass_font_set_transform(render_priv->state.font, render_priv->state.scale_x * render_priv->font_scale_x, -- 2.40.0