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
This commit is contained in:
eugeni 2006-09-22 18:47:29 +00:00
parent aa820534b6
commit 38ea1d82d8
1 changed files with 2 additions and 1 deletions

View File

@ -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);