diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-21 21:27:53 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-04-21 21:27:53 +0000 |
commit | 8421b19d28d785748c0080f76ae36d341761ee1c (patch) | |
tree | 1ff970b344842143cc4ca1fef77d0df7f487d54f | |
parent | a6b0b5c1bf444c5dfc278a68f903526a7877c916 (diff) | |
download | libass-8421b19d28d785748c0080f76ae36d341761ee1c.tar.bz2 libass-8421b19d28d785748c0080f76ae36d341761ee1c.tar.xz |
Don't automatically wrap lines when WrapStyle==2.
\n and \N still work.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29219 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libass/ass_render.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index b358494..2b59e0d 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -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) |