mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
Sorry I was errm a bit...dizzy
svn path=/trunk/; revision=15771
This commit is contained in:
parent
fd884b9ca2
commit
59b2cea3cd
2 changed files with 9 additions and 6 deletions
|
@ -120,7 +120,7 @@ BOOLEAN DIB_32BPP_BitBltSrcCopy(PBLTINFO);
|
|||
BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ*,SURFOBJ*,RECTL*,RECTL*,POINTL*,POINTL,CLIPOBJ*,XLATEOBJ*,ULONG);
|
||||
BOOLEAN DIB_32BPP_TransparentBlt(SURFOBJ*,SURFOBJ*,RECTL*,POINTL*,XLATEOBJ*,ULONG);
|
||||
|
||||
VOID FASTCALL DIB_32DstInvert(PBLTINFO BltInfo);
|
||||
BOOLEAN FASTCALL DIB_32DstInvert(PBLTINFO BltInfo);
|
||||
BOOLEAN DIB32_Srccopy(PBLTINFO BltInfo);
|
||||
BOOLEAN DIB32_ColorFill(PBLTINFO BltInfo, ULONG);
|
||||
BOOLEAN DIB32_SrcPaint(PBLTINFO BltInfo);
|
||||
|
|
|
@ -398,24 +398,24 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
|
|||
}
|
||||
|
||||
/* optimze functions for bitblt */
|
||||
VOID
|
||||
BOOLEAN
|
||||
FASTCALL
|
||||
DIB_32DstInvert(PBLTINFO BltInfo)
|
||||
{
|
||||
PULONG DestBits;
|
||||
ULONG top = BltInfo->DestRect.top;
|
||||
ULONG bottom = BltInfo->DestRect.left;
|
||||
ULONG left = BltInfo->DestRect.left;
|
||||
ULONG DestX = BltInfo->DestRect.right - left;
|
||||
ULONG DestY = BltInfo->DestRect.bottom - top;
|
||||
ULONG delta = BltInfo->DestSurface->lDelta - (DestX << 2);
|
||||
ULONG delta = BltInfo->DestSurface->lDelta - (DestX << 2);
|
||||
|
||||
/* Calculate the Initial Destination */
|
||||
DestBits = (PULONG)(BltInfo->DestSurface->pvScan0 + (left << 2) +
|
||||
top * BltInfo->DestSurface->lDelta);
|
||||
|
||||
do while (DestY > 0)
|
||||
while (DestY > 0)
|
||||
{
|
||||
do while (DestX > 0)
|
||||
while (DestX > 0)
|
||||
{
|
||||
/* Invert bits */
|
||||
*DestBits =~ *DestBits;
|
||||
|
@ -433,6 +433,9 @@ DIB_32DstInvert(PBLTINFO BltInfo)
|
|||
/* Decrease distance to do */
|
||||
DestY--;
|
||||
}
|
||||
|
||||
/* Return TRUE */
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
|
|
Loading…
Reference in a new issue