Logging improvements to allow prettier displays in the server GUI.
[dcpomatic.git] / src / lib / video_content_scale.cc
index c8c29536117c83fc1e89db36c20cdbada8caf559..775b3d9b71ac496194318af2198717e51f0bafae 100644 (file)
@@ -25,6 +25,7 @@
 #include <libcxml/cxml.h>
 #include <libxml++/libxml++.h>
 #include <boost/optional.hpp>
+#include <iostream>
 
 #include "i18n.h"
 
@@ -155,8 +156,8 @@ VideoContentScale::size (shared_ptr<const VideoContent> c, dcp::Size display_con
                        float (display_container.height) / film_container.height
                        );
 
-               size.width = rint (size.width * scale);
-               size.height = rint (size.height * scale);
+               size.width = lrintf (size.width * scale);
+               size.height = lrintf (size.height * scale);
        }
 
        return size;