From 61c93e14bc27b9ff3a3d4b143e709f444585fb76 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Fri, 9 Jul 2004 07:13:03 +0000 Subject: [PATCH] Researched and removed a TODO item git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8358 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/interface/clipping.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/private/interface/clipping.h b/headers/private/interface/clipping.h index af9e7ddde8..aef8de2556 100644 --- a/headers/private/interface/clipping.h +++ b/headers/private/interface/clipping.h @@ -115,8 +115,8 @@ valid_rect(clipping_rect rect) static inline bool rects_intersect(clipping_rect rectA, clipping_rect rectB) { - // TODO: should we skip that check and let the caller do this - // kind of work ? + // We behave like BRect::Intersects() does: + // we return false if one of the two rects is not valid if (!valid_rect(rectA) || !valid_rect(rectB)) return false;