summaryrefslogtreecommitdiff
path: root/src/lib/player.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-08-26 00:16:38 +0200
committerCarl Hetherington <cth@carlh.net>2022-08-26 00:16:40 +0200
commit89e493e675bc53284087151e9cdb06efb9b7d346 (patch)
tree370d4c6cd892762c21cdd2584ea3b049f0b8adf1 /src/lib/player.cc
parentc35a2927967704cb7760859afb831cb20b213704 (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.cc4
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;