vlc | branch: master | Erwan Tulou <[email protected]> | Fri Apr  5 14:59:04 
2013 +0200| [a678569e04c3d16fbada531c93b6c3f2b3c05a78] | committer: Erwan Tulou

skins2: add comparison for two rect

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a678569e04c3d16fbada531c93b6c3f2b3c05a78
---

 modules/gui/skins2/utils/position.hpp |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/gui/skins2/utils/position.hpp 
b/modules/gui/skins2/utils/position.hpp
index ec5b761..a02b3d9 100644
--- a/modules/gui/skins2/utils/position.hpp
+++ b/modules/gui/skins2/utils/position.hpp
@@ -263,6 +263,13 @@ public:
     static int min( int x, int y ) { return x < y ? x : y; }
     static int max( int x, int y ) { return x < y ? y : x; }
 
+    bool operator==( const rect& other ) const
+    {
+        return x == other.x &&
+               y == other.y &&
+               width == other.width &&
+               height == other.height;
+    }
 };
 
 #endif

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to