+2013-11-10 Carl Hetherington <cth@carlh.net>
+
+ * Hopefully get rid of spurious black lines around
+ preview.
+
2013-11-08 Carl Hetherington <carl@ubuntu>
* Fix strange behaviour of J2K bandwidth control
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));
}