From: Carl Hetherington Date: Thu, 25 Aug 2022 22:16:38 +0000 (+0200) Subject: fixup! Rather hacky support for burnt subtitle Z-position in 3D (#1359). X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=89e493e675bc53284087151e9cdb06efb9b7d346 fixup! Rather hacky support for burnt subtitle Z-position in 3D (#1359). Reduce the scale a bit. --- 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;