From 3021ac636b39e61df5c90f9c3e75fde66d6fb97f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Nov 2013 17:14:43 +0000 Subject: Hopefully get rid of spurious black lines around preview. --- src/lib/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib') 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)); } -- cgit v1.2.3