Logging improvements to allow prettier displays in the server GUI.
[dcpomatic.git] / src / lib / rect.h
index 1feb8ad4fed460d19a9f83439e21bdd0abcc1ea0..97b90abc5e28546ab74d6c0fa1115460289a0dbb 100644 (file)
 #define DCPOMATIC_RECT_H
 
 #include "position.h"
+#include <algorithm>
 
 /* Put this inside a namespace as Apple put a Rect in the global namespace */
 
 namespace dcpomatic
 {
-       
+
 /** @struct Rect
  *  @brief A rectangle.
  */
-template <class T>     
+template <class T>
 class Rect
 {
 public:
-       
+
        Rect ()
                : x (0)
                , y (0)
@@ -70,7 +71,7 @@ public:
        {
                T const tx = max (x, other.x);
                T const ty = max (y, other.y);
-       
+
                return Rect (
                        tx, ty,
                        min (x + width, other.x + other.width) - tx,