From ec35b786c8ea9fe57d9e22129ee075c8bd0d36a9 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 17 Jul 2003 06:43:03 +0000 Subject: [PATCH] Fixed the build, and added some more comments git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4003 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/region_helpers.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/region_helpers.cpp b/src/kits/interface/region_helpers.cpp index b591d1ade3..e92de6fd74 100644 --- a/src/kits/interface/region_helpers.cpp +++ b/src/kits/interface/region_helpers.cpp @@ -1,4 +1,5 @@ #include +#include #include #include "region_helpers.h" @@ -250,6 +251,13 @@ copy_region_n(BRegion *source, BRegion *dest, long count) } +/*! \brief Modify the destination region to be the intersection of the two given regions. + \param first The first region to be intersected. + \param second The second region to be intersected. + \param dest The destination region. + + Called by and_region() when the intersection is complex. +*/ void and_region_complex(BRegion *first, BRegion *second, BRegion *dest) { @@ -273,7 +281,13 @@ and_region_complex(BRegion *first, BRegion *second, BRegion *dest) } - +/*! \brief Modify the destination region to be the intersection of the two given regions. + \param first The first region to be intersected. + \param second The second region to be intersected. + \param dest The destination region. + + Called by and_region() when one of the two region contains just one rect. +*/ void and_region_1_to_n(BRegion *first, BRegion *second, BRegion *dest) {