projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c35a292
)
fixup! Rather hacky support for burnt subtitle Z-position in 3D (#1359).
1359-z-position
author
Carl Hetherington
<cth@carlh.net>
Thu, 25 Aug 2022 22:16:38 +0000
(
00:16
+0200)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 25 Aug 2022 22:16:40 +0000
(
00:16
+0200)
Reduce the scale a bit.
src/lib/player.cc
patch
|
blob
|
history
diff --git
a/src/lib/player.cc
b/src/lib/player.cc
index b209cc86ad9ef75bc8603c3c386a37b040d2ba2b..1875815510d466dd7c88e6069f8d7a5a675859b7 100644
(file)
--- 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;