summaryrefslogtreecommitdiff
path: root/src/lib/render_text.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-11-09 01:11:20 +0100
committerCarl Hetherington <cth@carlh.net>2020-11-16 01:40:36 +0100
commit126ba9aada95a3dc103d6babce396e5251640d82 (patch)
treea47e00ecc7229faebb002fa160d103f7882011fb /src/lib/render_text.cc
parent5e2596f26da5ab13f2386de1c0a3f67cd2f24776 (diff)
Fix thinko-ed logic causing all subtitles to be treated as though
they have borders. This fix will cause some movement of border-less subtitles (in existing projects) within the video frame.
Diffstat (limited to 'src/lib/render_text.cc')
-rw-r--r--src/lib/render_text.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_text.cc b/src/lib/render_text.cc
index f9c04dc4d..b3ddad5bb 100644
--- a/src/lib/render_text.cc
+++ b/src/lib/render_text.cc
@@ -332,7 +332,7 @@ render_line (list<StringText> subtitles, list<shared_ptr<Font> > fonts, dcp::Siz
}
}
- float const border_width = dcp::BORDER ? (first.outline_width * target.width / 2048.0) : 0;
+ float const border_width = first.effect() == dcp::BORDER ? (first.outline_width * target.width / 2048.0) : 0;
size.width += 2 * ceil (border_width);
size.height += 2 * ceil (border_width);