diff options
| -rw-r--r-- | common/rect.h | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/common/rect.h b/common/rect.h index dc97dcceec..326f481f3b 100644 --- a/common/rect.h +++ b/common/rect.h @@ -90,6 +90,9 @@ struct Rect {  	Rect(int16 x1, int16 y1, int16 x2, int16 y2) : top(y1), left(x1), bottom(y2), right(x2) {  		assert(isValidRect());  	} +	bool operator==(const Rect &rhs) const { return equals(rhs); } +	bool operator!=(const Rect &rhs) const { return !equals(rhs); } +  	int16 width() const { return right - left; }  	int16 height() const { return bottom - top; } | 
