Don't automatically wrap lines when WrapStyle==2.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 21 Apr 2009 21:27:53 +0000 (21:27 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Tue, 21 Apr 2009 21:27:53 +0000 (21:27 +0000)
\n and \N still work.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@29219 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index b358494..2b59e0d 100644 (file)
@@ -1603,7 +1603,7 @@ static void wrap_lines_smart(int max_text_width)
                        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)