- Fix RECTL_bPointInRect to work like PtInRect
- Use the fixed RECTL_bPointInRect in DIB_XXBPP_FloodFillSolid to fix a bugchek
See issue #6437 for more details.

svn path=/trunk/; revision=53946
This commit is contained in:
Giannis Adamopoulos
2011-10-02 23:09:03 +00:00
parent 282312fef2
commit 05b34b61ef
2 changed files with 3 additions and 4 deletions
@@ -59,8 +59,7 @@ static __inline VOID addItemFlood(FLOODINFO *info,
ULONG Color,
BOOL isSurf)
{
if (x >= DstRect->left && x <= DstRect->right &&
y >= DstRect->top && y <= DstRect->bottom)
if (RECTL_bPointInRect(DstRect,x,y))
{
if (isSurf == TRUE &&
DibFunctionsForBitmapFormat[DstSurf->iBitmapFormat].DIB_GetPixel(DstSurf, x, y) != Color)
@@ -41,8 +41,8 @@ BOOL
FORCEINLINE
RECTL_bPointInRect(const RECTL *prcl, INT x, INT y)
{
return (x >= prcl->left && x <= prcl->right &&
y >= prcl->top && y <= prcl->bottom);
return (x >= prcl->left && x < prcl->right &&
y >= prcl->top && y < prcl->bottom);
}
BOOL