diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-02 20:20:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-05-02 20:20:32 +0100 |
| commit | ae15eeca8588c6928d7671894db98c2e289fa601 (patch) | |
| tree | d284aff5b975d57c3a69926634f2259a8828583e /src/lib/util.cc | |
| parent | a38095fc533b2620e375695024beca5f5540b10d (diff) | |
Remove approximate size stuff where playback viewer would round
down to nearest 4 pixels to try and speed up scaling. It didn't
work as the two estimates of what would be scaled didn't always
agree. It could probably be resurrected.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 08683fb7e..bffbe90d4 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -546,13 +546,13 @@ tidy_for_filename (string f) } dcp::Size -fit_ratio_within (float ratio, dcp::Size full_frame, int round) +fit_ratio_within (float ratio, dcp::Size full_frame) { if (ratio < full_frame.ratio ()) { - return dcp::Size (round_to (full_frame.height * ratio, round), full_frame.height); + return dcp::Size (rint (full_frame.height * ratio), full_frame.height); } - return dcp::Size (full_frame.width, round_to (full_frame.width / ratio, round)); + return dcp::Size (full_frame.width, rint (full_frame.width / ratio)); } void * |
