[MPlayer-cvslog] r19655 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Sun Sep 3 19:09:53 CEST 2006


Author: eugeni
Date: Sun Sep  3 19:09:53 2006
New Revision: 19655

Modified:
   trunk/libass/ass_render.c

Log:
Remove unneeded variable.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Sun Sep  3 19:09:53 2006
@@ -1510,7 +1510,6 @@
 	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 @@
 	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



More information about the MPlayer-cvslog mailing list