diff options
| -rw-r--r-- | common/rect.h | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/common/rect.h b/common/rect.h index f71124434a..dcf1c8b421 100644 --- a/common/rect.h +++ b/common/rect.h @@ -177,6 +177,10 @@ struct Rect {  		clip(Rect(0, 0, maxw, maxh));  	} +	bool isEmpty() const { +		return (left >= right || top >= bottom); +	} +  	bool isValidRect() const {  		return (left <= right && top <= bottom);  	}  | 
