diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-03 17:09:53 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-03 17:09:53 +0000 |
commit | 83a3b732c443c72b2c3f7eb11003fe12d295976b (patch) | |
tree | e2a7aa5c7a7ae3ea3570d7af51e508bf157d1594 | |
parent | 661c16b62e989800509cf0e6f5ff9f7438d1dc5e (diff) | |
download | mpv-83a3b732c443c72b2c3f7eb11003fe12d295976b.tar.bz2 mpv-83a3b732c443c72b2c3f7eb11003fe12d295976b.tar.xz |
Remove unneeded variable.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19655 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_render.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 088db2eda5..c0b30858de 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -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 |