sorry wrong optimze for black and white fixing the start menu

svn path=/trunk/; revision=15742
This commit is contained in:
Magnus Olsen 2005-06-03 00:10:18 +00:00
parent 5416ad8915
commit 848d499f3d

View file

@ -311,12 +311,11 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
case ROP4_BLACKNESS:
//return(0x00000000);
#ifdef _M_IX86
if (BltInfo->DestRect.left!=0)
{
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) ;
if (SourceX<=0) return TRUE;
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
{
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
@ -327,15 +326,16 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
}
else
{
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) *
BltInfo->DestRect.right) ;
BltInfo->DestRect.right) << 2;
memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
BltInfo->DestSurface->lDelta, 0x00000000, SourceX);
if (SourceX<=0) return TRUE;
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
BltInfo->DestSurface->lDelta), 0x00000000, SourceX);
}
#else
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
{
DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0x00000000);
@ -347,13 +347,10 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
case ROP4_WHITENESS:
//return(0xFFFFFFFF);
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * BltInfo->DestRect.right) ;
if (SourceX<=0) return TRUE;
#ifdef _M_IX86
if (BltInfo->DestRect.left!=0)
{
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
{
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
@ -364,16 +361,21 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
}
else
{
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
BltInfo->DestSurface->lDelta), 0xFFFFFFFF, SourceX);
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) *
BltInfo->DestRect.right) << 2;
memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
BltInfo->DestSurface->lDelta, 0xFFFFFFFF, SourceX);
}
#else
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
{
DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0xFFFFFFFF);
}
#endif
return TRUE;
break;