X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Frect.h;h=97b90abc5e28546ab74d6c0fa1115460289a0dbb;hp=1feb8ad4fed460d19a9f83439e21bdd0abcc1ea0;hb=aeb835a18c8df347e0ed68fb24631b320abeb611;hpb=f90d74f7a0382f0dc63eef81bd553d7a7b38edb2 diff --git a/src/lib/rect.h b/src/lib/rect.h index 1feb8ad4f..97b90abc5 100644 --- a/src/lib/rect.h +++ b/src/lib/rect.h @@ -21,20 +21,21 @@ #define DCPOMATIC_RECT_H #include "position.h" +#include /* Put this inside a namespace as Apple put a Rect in the global namespace */ namespace dcpomatic { - + /** @struct Rect * @brief A rectangle. */ -template +template 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,