diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-08-26 00:16:38 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-08-26 00:16:40 +0200 |
| commit | 89e493e675bc53284087151e9cdb06efb9b7d346 (patch) | |
| tree | 370d4c6cd892762c21cdd2584ea3b049f0b8adf1 /src/lib/player.cc | |
| parent | c35a2927967704cb7760859afb831cb20b213704 (diff) | |
fixup! Rather hacky support for burnt subtitle Z-position in 3D (#1359).1359-z-position
Reduce the scale a bit.
Diffstat (limited to 'src/lib/player.cc')
| -rw-r--r-- | src/lib/player.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/player.cc b/src/lib/player.cc index b209cc86a..187581551 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -881,9 +881,9 @@ Player::open_subtitles_for_frame (DCPTime time, Eyes eyes) const if (!burnt.string.empty()) { int stereo_offset = 0; if (eyes == Eyes::LEFT) { - stereo_offset = -burnt.z_position; + stereo_offset = -burnt.z_position / 10; } else if (eyes == Eyes::RIGHT) { - stereo_offset = burnt.z_position; + stereo_offset = burnt.z_position / 10; } for (auto subtitle: render_text(burnt.string, _video_container_size, time, vfr)) { subtitle.position.x += stereo_offset; |
