projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix horizontal positioning with .srt / burn-in (#488).
[dcpomatic.git]
/
src
/
lib
/
subrip_decoder.cc
diff --git
a/src/lib/subrip_decoder.cc
b/src/lib/subrip_decoder.cc
index 6ed2e5254fb5c9be4847fd00c3df4eb31a42b865..5c6d331dfe66bb3802010657de4ed0be2bd94b71 100644
(file)
--- a/
src/lib/subrip_decoder.cc
+++ b/
src/lib/subrip_decoder.cc
@@
-65,10
+65,13
@@
SubRipDecoder::pass (PassReason)
j->italic,
dcp::Colour (255, 255, 255),
j->font_size.points (72 * 11),
j->italic,
dcp::Colour (255, 255, 255),
j->font_size.points (72 * 11),
+ 1.0,
dcp::Time (_subtitles[_next].from.all_as_seconds()),
dcp::Time (_subtitles[_next].to.all_as_seconds()),
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,
i->vertical_position.line.get() * (1.5 / 22) + 0.8,
- dcp::TOP,
+ dcp::
VALIGN_
TOP,
j->text,
dcp::NONE,
dcp::Colour (255, 255, 255),
j->text,
dcp::NONE,
dcp::Colour (255, 255, 255),