summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-21 21:27:53 +0000
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-21 21:27:53 +0000
commit78f362136da22404f1dd668f178923179f236437 (patch)
treeb0e8d8c7942dcc7ccabe21a16c8dab3f4f7a6369 /libass
parent424caeb9209853b493303cfcf77bc99e66ee893b (diff)
downloadmpv-78f362136da22404f1dd668f178923179f236437.tar.bz2
mpv-78f362136da22404f1dd668f178923179f236437.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
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index b3584948f6..2b59e0d2f7 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)