Sorry I was errm a bit...dizzy

svn path=/trunk/; revision=15771
This commit is contained in:
Alex Ionescu 2005-06-04 13:38:48 +00:00
parent fd884b9ca2
commit 59b2cea3cd
2 changed files with 9 additions and 6 deletions

View file

@ -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);

View file

@ -398,13 +398,13 @@ 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);
@ -413,9 +413,9 @@ DIB_32DstInvert(PBLTINFO BltInfo)
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