aboutsummaryrefslogtreecommitdiff
path: root/common/rect.h
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-03-01 19:11:43 +0100
committerWillem Jan Palenstijn2016-03-01 19:11:49 +0100
commitd4d4b779aa2889ef7988cf16084a59249809438a (patch)
treec6eae44a7dc835b90772100ed59063276e4adf76 /common/rect.h
parentbbec27c111c53d2ab2db8c2b0a72212d5eab9464 (diff)
downloadscummvm-rg350-d4d4b779aa2889ef7988cf16084a59249809438a.tar.gz
scummvm-rg350-d4d4b779aa2889ef7988cf16084a59249809438a.tar.bz2
scummvm-rg350-d4d4b779aa2889ef7988cf16084a59249809438a.zip
COMMON: Fix Rect::intersects doc
Diffstat (limited to 'common/rect.h')
-rw-r--r--common/rect.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/rect.h b/common/rect.h
index 32424d3e6a..e6534e55d3 100644
--- a/common/rect.h
+++ b/common/rect.h
@@ -163,7 +163,8 @@ struct Rect {
*
* @param r the rectangle to check
*
- * @return true if the given rectangle is inside the rectangle, false otherwise
+ * @return true if the given rectangle has a non-empty intersection with
+ * this rectangle, false otherwise
*/
bool intersects(const Rect &r) const {
return (left < r.right) && (r.left < right) && (top < r.bottom) && (r.top < bottom);