# HG changeset patch # User eugeni # Date 1158950849 0 # Node ID 399bb1fcdc9461521bec51a724e7049cdcf770c4 # Parent 5d0eaf70e1bc31bd76d2cffc1054571ae5d9aebc Move variable declaration to a more deeply nested block. It is not used outside of it. diff -r 5d0eaf70e1bc -r 399bb1fcdc94 libass/ass_render.c --- a/libass/ass_render.c Fri Sep 22 18:18:56 2006 +0000 +++ b/libass/ass_render.c Fri Sep 22 18:47:29 2006 +0000 @@ -1509,7 +1509,6 @@ 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 @@ 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);