From 38ea1d82d86fa8a4cdf94f035a02dff35f51e5ff Mon Sep 17 00:00:00 2001 From: eugeni Date: Fri, 22 Sep 2006 18:47:29 +0000 Subject: [PATCH] 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 --- libass/ass_render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 6ef6c67aa6..7a0ebf79da 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);