summaryrefslogtreecommitdiff
path: root/src/lib/rect.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-12-19 02:13:12 +0100
committerCarl Hetherington <cth@carlh.net>2019-12-19 02:13:12 +0100
commitea67859b383a31496a604e65a166974b20a1c94e (patch)
tree1740b2658f5033b59442e3958ba77b53905b16fa /src/lib/rect.h
parentb5335ed37e52c216a6773789c0edba5f335c8df2 (diff)
Hack: delay decisions about subtitle position late enough that we can refresh the preview image quickly.attic/hack-faster-subtitle-moving
Diffstat (limited to 'src/lib/rect.h')
-rw-r--r--src/lib/rect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/rect.h b/src/lib/rect.h
index 4851ad007..07fb22dc9 100644
--- a/src/lib/rect.h
+++ b/src/lib/rect.h
@@ -24,6 +24,7 @@
#include "position.h"
#include <boost/optional.hpp>
#include <algorithm>
+#include <cmath>
/* Put this inside a namespace as Apple put a Rect in the global namespace */
@@ -114,6 +115,8 @@ public:
}
};
+extern bool operator== (Rect<double> const & a, Rect<double> const & b);
+
}
#endif