]> granicus.if.org Git - libass/commitdiff
Move variable declaration to a more deeply nested block. It is not used outside of it.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 22 Sep 2006 18:47:29 +0000 (18:47 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 22 Sep 2006 18:47:29 +0000 (18:47 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19937 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 6ef6c67aa6d56013b1d0d4993cd5c6dbd29e84bd..7a0ebf79da49f67a4927b877dba6d435e9017eae 100644 (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);