changeset 19931:399bb1fcdc94

Move variable declaration to a more deeply nested block. It is not used outside of it.
author eugeni
date Fri, 22 Sep 2006 18:47:29 +0000
parents 5d0eaf70e1bc
children 0b5b9cbbc74e
files libass/ass_render.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Sep 22 18:18:56 2006 +0000
+++ b/libass/ass_render.c	Fri Sep 22 18:47:29 2006 +0000
@@ -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);