diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-10-02 00:26:35 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-10-02 00:26:35 +0100 |
| commit | 938d3cde87a1958513bc1e98d2285dda1e960055 (patch) | |
| tree | 6bb8dd775a56bd6ce8fc592312b082526aba3499 /src/lib | |
| parent | 86cb57f329a4b8e58fdbe3ff610bdf56d6b4657c (diff) | |
Apply subtitle scale (ish) to text subs; should help with #413.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/player.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index 94bbf0c3d..db99cd2ad 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -576,6 +576,7 @@ Player::get_subtitles (DCPTime time, DCPTime length, bool starting) BOOST_FOREACH (ContentTextSubtitle& ts, text) { BOOST_FOREACH (dcp::SubtitleString& s, ts.subs) { s.set_v_position (s.v_position() + subtitle_content->subtitle_y_offset ()); + s.set_size (s.size() * max (subtitle_content->subtitle_x_scale(), subtitle_content->subtitle_y_scale())); ps.text.push_back (s); } } |
