From 02a753124ae352dc7a3237689a108b9fd4bf7d28 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 28 Jul 2002 13:15:57 +0000 Subject: Changed Contains to do semi-includive bounds correctly. --- include/Platform.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Platform.h b/include/Platform.h index ffb4a3cc3..1e6acbaac 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -101,8 +101,8 @@ public: (rc.top >= top) && (rc.bottom <= bottom); } bool Intersects(PRectangle other) { - return (right >= other.left) && (left <= other.right) && - (bottom >= other.top) && (top <= other.bottom); + return (right > other.left) && (left < other.right) && + (bottom > other.top) && (top < other.bottom); } int Width() { return right - left; } int Height() { return bottom - top; } -- cgit v1.2.3