A line can be too a valid rect.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3816 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#ifndef __CLIPRECT_INLINE_HELPERS_H
|
||||
#define __CLIPRECT_INLINE_HELPERS_H
|
||||
#ifndef __CLIPPING_H
|
||||
#define __CLIPPING_H
|
||||
|
||||
static inline clipping_rect
|
||||
union_rect(clipping_rect r1, clipping_rect r2)
|
||||
@@ -76,9 +76,9 @@ point_in(clipping_rect rect, BPoint pt)
|
||||
static inline bool
|
||||
valid_rect(clipping_rect rect)
|
||||
{
|
||||
if (rect.left < rect.right && rect.top < rect.bottom)
|
||||
if (rect.left <= rect.right && rect.top <= rect.bottom)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
#endif // __CLIPRECT_INLINE_HELPERS_H
|
||||
#endif // __CLIPPING_H
|
||||
|
||||
Reference in New Issue
Block a user