summaryrefslogtreecommitdiff
path: root/src/lib/subrip_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-04 00:17:12 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-04 00:17:12 +0100
commit4f1751a9e43e515be773ee3871150f7beca325f5 (patch)
tree4b8c0c982c647bf5a5e8f82a052e8e48a103f337 /src/lib/subrip_decoder.cc
parent7affca9f7b210c3137eb084cd393b534051a2647 (diff)
Fix horizontal positioning with .srt / burn-in (#488).
Diffstat (limited to 'src/lib/subrip_decoder.cc')
-rw-r--r--src/lib/subrip_decoder.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/subrip_decoder.cc b/src/lib/subrip_decoder.cc
index dae2e4ab7..5c6d331df 100644
--- a/src/lib/subrip_decoder.cc
+++ b/src/lib/subrip_decoder.cc
@@ -68,8 +68,10 @@ SubRipDecoder::pass (PassReason)
1.0,
dcp::Time (_subtitles[_next].from.all_as_seconds()),
dcp::Time (_subtitles[_next].to.all_as_seconds()),
+ 0,
+ dcp::HALIGN_CENTER,
i->vertical_position.line.get() * (1.5 / 22) + 0.8,
- dcp::TOP,
+ dcp::VALIGN_TOP,
j->text,
dcp::NONE,
dcp::Colour (255, 255, 255),