diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-19 23:08:21 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-19 23:08:21 +0200 |
| commit | 486038a7eb23498e1e5097e73a32929d889ca505 (patch) | |
| tree | 725d2d245c2afaa9de857f92c2f06f601f338a0e /src/lib/text_decoder.cc | |
| parent | 6c18c9a37f3a1c8ea1d3ca7791a0f1380b23f5d1 (diff) | |
Fix default placement of SRT (etc.) now that the alignment has changed
Diffstat (limited to 'src/lib/text_decoder.cc')
| -rw-r--r-- | src/lib/text_decoder.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/text_decoder.cc b/src/lib/text_decoder.cc index 930262a74..c691f795d 100644 --- a/src/lib/text_decoder.cc +++ b/src/lib/text_decoder.cc @@ -167,10 +167,10 @@ TextDecoder::emit_plain_start (ContentTime from, sub::Subtitle const & sub_subti switch (line.vertical_position.reference.get_value_or(sub::BOTTOM_OF_SCREEN)) { case sub::BOTTOM_OF_SCREEN: case sub::TOP_OF_SUBTITLE: - /* This 1.015 is an arbitrary value to lift the bottom sub off the bottom + /* This 0.9 is an arbitrary value to lift the bottom sub off the bottom of the screen a bit to a pleasing degree. */ - v_position = 1.015 - + v_position = 0.9 - (1 + bottom_line.get() - line.vertical_position.line.get()) * multiplier; v_align = dcp::VAlign::TOP; |
