diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-04 00:17:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-04 00:17:12 +0100 |
| commit | 4f1751a9e43e515be773ee3871150f7beca325f5 (patch) | |
| tree | 4b8c0c982c647bf5a5e8f82a052e8e48a103f337 /src/lib/subrip_decoder.cc | |
| parent | 7affca9f7b210c3137eb084cd393b534051a2647 (diff) | |
Fix horizontal positioning with .srt / burn-in (#488).
Diffstat (limited to 'src/lib/subrip_decoder.cc')
| -rw-r--r-- | src/lib/subrip_decoder.cc | 4 |
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), |
