summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-26 20:49:10 +0100
committerwm4 <wm4@nowhere>2015-02-26 20:49:10 +0100
commit4f43ff2ca3bed41dfd122d1a34e88c08c06ca795 (patch)
tree8477c05702947c5647424df4ab87d0a3e39f1488 /libass
parentba3f5ef88997f22507f58a9cc44e94d2dc070566 (diff)
downloadlibass-4f43ff2ca3bed41dfd122d1a34e88c08c06ca795.tar.bz2
libass-4f43ff2ca3bed41dfd122d1a34e88c08c06ca795.tar.xz
Always use the new style with \r and style overrides
I don't know why it was done this way, but some fields were always taken from the event's style, instead of the (possibly different) \r style. Undo this, as it seems like an unnecessary complication.
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_render.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c
index 6140788..2a36647 100644
--- a/libass/ass_render.c
+++ b/libass/ass_render.c
@@ -782,12 +782,12 @@ static ASS_Style *handle_selective_style_overrides(ASS_Renderer *render_priv,
new->Underline = rstyle->Underline;
new->Angle = rstyle->Angle;
- new->MarginL = script->MarginL;
- new->MarginR = script->MarginR;
- new->MarginV = script->MarginV;
- new->Alignment = script->Alignment;
- new->Encoding = script->Encoding;
- new->treat_fontname_as_pattern = script->treat_fontname_as_pattern;
+ new->MarginL = rstyle->MarginL;
+ new->MarginR = rstyle->MarginR;
+ new->MarginV = rstyle->MarginV;
+ new->Alignment = rstyle->Alignment;
+ new->Encoding = rstyle->Encoding;
+ new->treat_fontname_as_pattern = rstyle->treat_fontname_as_pattern;
// The user style is supposed to be independent of the script resolution.
// Treat the user style's values as if they were specified for a script with