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

eugeni subversion at mplayerhq.hu
Tue Apr 21 23:27:54 CEST 2009


Author: eugeni
Date: Tue Apr 21 23:27:53 2009
New Revision: 29219

Log:
Don't automatically wrap lines when WrapStyle==2.

\n and \N still work.

Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	Tue Apr 21 10:19:22 2009	(r29218)
+++ trunk/libass/ass_render.c	Tue Apr 21 23:27:53 2009	(r29219)
@@ -1603,7 +1603,7 @@ static void wrap_lines_smart(int max_tex
 			mp_msg(MSGT_ASS, MSGL_DBG2, "forced line break at %d\n", break_at);
 		}
 		
-		if (len >= max_text_width) {
+		if ((len >= max_text_width) && (frame_context.track->WrapStyle != 2)) {
 			break_type = 1;
 			break_at = last_space;
 			if (break_at == -1)


More information about the MPlayer-cvslog mailing list