diff options
author | wm4 <wm4@nowhere> | 2012-09-29 21:27:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-09-29 21:27:55 +0200 |
commit | 6d2b7f238ec20a88d7ced4a513c6262a0b39d9ff (patch) | |
tree | 5efbe56c80592516ba6df9bfd72fb677953dea47 /libass/ass_parse.c | |
parent | de409235f4a32f6dfa6ab73eeb4bcd8d3b679387 (diff) | |
download | libass-6d2b7f238ec20a88d7ced4a513c6262a0b39d9ff.tar.bz2 libass-6d2b7f238ec20a88d7ced4a513c6262a0b39d9ff.tar.xz |
Fix resetting border style with \rSTYLE
With \rSTYLE, it is possible to change the border style within the same
subtitle event. You can do this by setting a different BorderStyle value
in the newly requested style. VSFilter handles this as expected, while
libass uses a single border style for the whole subtitle event.
This fixes libass issue #56.
Diffstat (limited to 'libass/ass_parse.c')
-rw-r--r-- | libass/ass_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_parse.c b/libass/ass_parse.c index 7f1c8f0..da75d29 100644 --- a/libass/ass_parse.c +++ b/libass/ass_parse.c @@ -114,8 +114,8 @@ void update_font(ASS_Renderer *render_priv) void calc_border(ASS_Renderer *priv, double border_x, double border_y) { if (border_x < 0 && border_y < 0) { - if (priv->state.style->BorderStyle == 1 || - priv->state.style->BorderStyle == 3) + if (priv->state.border_style == 1 || + priv->state.border_style == 3) border_x = border_y = priv->state.style->Outline; else border_x = border_y = 1.; |