diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-04 10:27:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-08 22:11:35 +0200 |
| commit | 3f8df1be4983cc1ce7547d9bbb89114bf281d9b7 (patch) | |
| tree | fa0ccf9698f7c55b44d3b7ce6cb4f4d6f2e808a9 | |
| parent | 6cfa18600fe575a4f9773ce5711b49ffc6003d04 (diff) | |
Return float from border_width_for_subtitle().
We're already using ceil on the return value everywhere we need to, as
far as I can see.
| -rw-r--r-- | src/lib/render_text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/render_text.cc b/src/lib/render_text.cc index d56ff85d1..b2384871f 100644 --- a/src/lib/render_text.cc +++ b/src/lib/render_text.cc @@ -360,7 +360,7 @@ setup_layout(vector<StringText> subtitles, dcp::Size target, DCPTime time, int f static -int +float border_width_for_subtitle(StringText const& subtitle, dcp::Size target) { return subtitle.effect() == dcp::Effect::BORDER ? (subtitle.outline_width * target.width / 2048.0) : 0; |
