]> granicus.if.org Git - libass/commitdiff
Remove unneeded variable.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Sep 2006 17:09:53 +0000 (17:09 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 3 Sep 2006 17:09:53 +0000 (17:09 +0000)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19655 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 088db2eda5d890e9bd8f82e5607c911defaa8847..c0b30858de275875b117ec304a4fcb4e44ed3526 100644 (file)
@@ -1510,7 +1510,6 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
        FT_Vector shift;
        int MarginL, MarginR, MarginV;
        int max_text_width;
-       ass_style_t* style = frame_context.track->styles + event->Style;
        int last_break;
        int alignment, halign, valign;
        int device_x = 0, device_y = 0;
@@ -1631,9 +1630,9 @@ static int ass_render_event(ass_event_t* event, event_images_t* event_images)
        halign = alignment & 3;
        valign = alignment & 12;
 
-       MarginL = (event->MarginL) ? event->MarginL : style->MarginL; 
-       MarginR = (event->MarginR) ? event->MarginR : style->MarginR; 
-       MarginV = (event->MarginV) ? event->MarginV : style->MarginV;
+       MarginL = (event->MarginL) ? event->MarginL : render_context.style->MarginL; 
+       MarginR = (event->MarginR) ? event->MarginR : render_context.style->MarginR; 
+       MarginV = (event->MarginV) ? event->MarginV : render_context.style->MarginV;
 
        if (render_context.evt_type != EVENT_HSCROLL) {
                // calculate max length of a line