Fix horizontal positioning with .srt / burn-in (#488).
[dcpomatic.git] / src / lib / subrip_decoder.cc
index dae2e4ab755d8085114b137a2ed83b7b0a9ba187..5c6d331dfe66bb3802010657de4ed0be2bd94b71 100644 (file)
@@ -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),