]> granicus.if.org Git - libass/commitdiff
Cosmetics: minor cleanup in ass_render_events
authorGrigori Goronzy <greg@blackbox>
Sat, 27 Jun 2009 04:11:59 +0000 (06:11 +0200)
committerGrigori Goronzy <greg@blackbox>
Sat, 27 Jun 2009 04:46:20 +0000 (06:46 +0200)
libass/ass_render.c

index 14f2db1e3c1e7d857b3b89a37da7f1a211081c58..30e68cc41304369a37cf3f29d45632e67f3729ec 100644 (file)
@@ -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,