[vlc-commits] skins2: add comparison for two rect

Erwan Tulou git at videolan.org
Fri Apr 5 19:16:01 CEST 2013


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | 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



More information about the vlc-commits mailing list