projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Primitive auto-crop (#1477).
[dcpomatic.git]
/
src
/
lib
/
rect.h
diff --git
a/src/lib/rect.h
b/src/lib/rect.h
index 5f807f4999a155a8de737adc30eac87fe1a43d65..a01e0f8858ffba6d31eb6b9675d0cff571b4571d 100644
(file)
--- a/
src/lib/rect.h
+++ b/
src/lib/rect.h
@@
-119,6
+119,13
@@
public:
};
};
+template <class T>
+bool operator== (Rect<T> const& a, Rect<T> const& b)
+{
+ return a.x == b.x && a.y == b.y && a.width == b.width && a.height == b.height;
+}
+
+
}
}