diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-10 17:14:43 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-10 17:14:43 +0000 |
| commit | 3021ac636b39e61df5c90f9c3e75fde66d6fb97f (patch) | |
| tree | e0542e73a8af019ad825e541c9b6922b012e8fa6 /src/lib | |
| parent | 6b57a4d4516272cfd9b3b3ae982da7285fb879d3 (diff) | |
Hopefully get rid of spurious black lines around preview.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index e2ce94dd9..484c4fb9b 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -930,8 +930,8 @@ libdcp::Size fit_ratio_within (float ratio, libdcp::Size full_frame) { if (ratio < full_frame.ratio ()) { - return libdcp::Size (full_frame.height * ratio, full_frame.height); + return libdcp::Size (rint (full_frame.height * ratio), full_frame.height); } - return libdcp::Size (full_frame.width, full_frame.width / ratio); + return libdcp::Size (full_frame.width, rint (full_frame.width / ratio)); } |
