summaryrefslogtreecommitdiff
path: root/src/lib/subtitle_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-02 23:52:54 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-02 23:52:54 +0100
commit3dd6717ebb8766fd9ca2a9983e9d0bed69312d1e (patch)
tree6fdf17eee89009c3c221398b6179ddee98befbee /src/lib/subtitle_decoder.cc
parent59f07d959514b80fcce5aa99f575ef8e6fceba8b (diff)
Take y scale into account when deciding subtitle line spacing.
Diffstat (limited to 'src/lib/subtitle_decoder.cc')
-rw-r--r--src/lib/subtitle_decoder.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/subtitle_decoder.cc b/src/lib/subtitle_decoder.cc
index 63ab7c471..72c6883fb 100644
--- a/src/lib/subtitle_decoder.cc
+++ b/src/lib/subtitle_decoder.cc
@@ -174,8 +174,9 @@ SubtitleDecoder::give_text (ContentTimePeriod period, sub::Subtitle const & subt
/* This 1.015 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 - (1 + bottom_line.get() - i.vertical_position.line.get())
- * 1.2 * content()->line_spacing() * j.font_size.proportional (72 * 11);
+ v_position = 1.015 -
+ (1 + bottom_line.get() - i.vertical_position.line.get())
+ * 1.2 * content()->line_spacing() * content()->y_scale() * j.font_size.proportional (72 * 11);
v_align = dcp::VALIGN_TOP;
} else {