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

eugeni subversion at mplayerhq.hu
Fri Sep 22 20:47:29 CEST 2006


Author: eugeni
Date: Fri Sep 22 20:47:29 2006
New Revision: 19937

Modified:
   trunk/libass/ass_render.c

Log:
Move variable declaration to a more deeply nested block. It is not used outside of it.


Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	(original)
+++ trunk/libass/ass_render.c	Fri Sep 22 20:47:29 2006
@@ -1509,7 +1509,6 @@
 	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 @@
 	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);
 



More information about the MPlayer-cvslog mailing list