mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-28 19:26:16 +00:00
[win32k]
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user