changeset 19649:8b8288f9a28f

Remove unneeded variable.
author eugeni
date Sun, 03 Sep 2006 17:09:53 +0000
parents b46337386efc
children d89179256560
files libass/ass_render.c
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Sun Sep 03 15:37:49 2006 +0000
+++ b/libass/ass_render.c	Sun Sep 03 17:09:53 2006 +0000
@@ -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