changeset 29178:0e5d94f37c5d

Don't automatically wrap lines when WrapStyle==2. \n and \N still work.
author eugeni
date Tue, 21 Apr 2009 21:27:53 +0000
parents 1dfd99eb3280
children dd89d439c911
files libass/ass_render.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Tue Apr 21 08:19:22 2009 +0000
+++ b/libass/ass_render.c	Tue Apr 21 21:27:53 2009 +0000
@@ -1603,7 +1603,7 @@
 			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)