--- xmil/common/rect.c 2004/08/01 05:31:29 1.1 +++ xmil/common/rect.c 2008/06/02 20:07:30 1.3 @@ -1,7 +1,7 @@ #include "compiler.h" -BOOL rect_in(const RECT_T *rect, int x, int y) { +BRESULT rect_in(const RECT_T *rect, int x, int y) { if ((rect) && (rect->left <= x) && (rect->right > x) && @@ -26,7 +26,7 @@ int rect_num(const RECT_T *rect, int cnt return(-1); } -BOOL rect_isoverlap(const RECT_T *r1, const RECT_T *r2) { +BRESULT rect_isoverlap(const RECT_T *r1, const RECT_T *r2) { if ((r1->left >= r2->right) || (r1->right <= r2->left) || @@ -43,7 +43,7 @@ void rect_enumout(const RECT_T *tag, con RECT_T rect; if ((tag != NULL) && (base != NULL) && (outcb != NULL)) { - // base.top -> tag.top + /* base.top -> tag.top */ rect.top = base->top; rect.bottom = min(tag->top, base->bottom); if (rect.top < rect.bottom) { @@ -53,7 +53,7 @@ void rect_enumout(const RECT_T *tag, con rect.top = rect.bottom; } - // -> tag.bottom + /* -> tag.bottom */ rect.bottom = min(tag->bottom, base->bottom); if (rect.top < rect.bottom) { rect.left = base->left; @@ -69,7 +69,7 @@ void rect_enumout(const RECT_T *tag, con rect.top = rect.bottom; } - // -> base.bottom + /* -> base.bottom */ rect.bottom = base->bottom; if (rect.top < rect.bottom) { rect.left = base->left;