Commit a678569e authored by Erwan Tulou's avatar Erwan Tulou

skins2: add comparison for two rect

parent f8d1501c
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment