From: eugeni Date: Fri, 22 Sep 2006 18:47:29 +0000 (+0000) Subject: Move variable declaration to a more deeply nested block. It is not used outside of it. X-Git-Tag: 0.9.7~436 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1daa84aecfcade27e09e114263d266bef024b507;p=libass Move variable declaration to a more deeply nested block. It is not used outside of it. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19937 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 6ef6c67..7a0ebf7 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1509,7 +1509,6 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) int i, j; FT_Vector shift; int MarginL, MarginR, MarginV; - int max_text_width; int last_break; int alignment, halign, valign; int device_x = 0, device_y = 0; @@ -1642,6 +1641,8 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images) MarginV = (event->MarginV) ? event->MarginV : render_context.style->MarginV; if (render_context.evt_type != EVENT_HSCROLL) { + int max_text_width; + // calculate max length of a line max_text_width = x2scr(frame_context.track->PlayResX - MarginR) - x2scr(MarginL);