mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32K] Fix off-by-one errors
Spotted by Doug Lyons CORE-17520
This commit is contained in:
parent
998870c5ea
commit
068687e0fd
1 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ DIB_1BPP_BitBltSrcCopy_From1BPP (
|
|||
{
|
||||
LONG yDst = DestRect->top + Height;
|
||||
LONG ySrc = bTopToBottom ?
|
||||
SourcePoint->y + RECTL_lGetHeight(DestRect) - Height
|
||||
SourcePoint->y + RECTL_lGetHeight(DestRect) - Height - 1
|
||||
: SourcePoint->y + Height;
|
||||
LONG Width = RECTL_lGetWidth(DestRect);
|
||||
|
||||
|
@ -86,7 +86,7 @@ DIB_1BPP_BitBltSrcCopy_From1BPP (
|
|||
{
|
||||
LONG xDst = DestRect->left + Width;
|
||||
LONG xSrc = bLeftToRight ?
|
||||
SourcePoint->x + RECTL_lGetWidth(DestRect) - Width
|
||||
SourcePoint->x + RECTL_lGetWidth(DestRect) - Width - 1
|
||||
: SourcePoint->x + Width;
|
||||
ULONG PixelPut = DIB_1BPP_GetPixel(SourceSurf, xSrc, ySrc);
|
||||
if (XorBit)
|
||||
|
|
Loading…
Reference in a new issue