Fix horizontal positioning with .srt / burn-in (#488).
[dcpomatic.git] / src / lib / subrip_decoder.cc
index 6ed2e5254fb5c9be4847fd00c3df4eb31a42b865..5c6d331dfe66bb3802010657de4ed0be2bd94b71 100644 (file)
@@ -65,10 +65,13 @@ SubRipDecoder::pass (PassReason)
                                        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()),
+                                       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),