mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
sorry wrong optimze for black and white fixing the start menu
svn path=/trunk/; revision=15742
This commit is contained in:
parent
5416ad8915
commit
848d499f3d
1 changed files with 32 additions and 30 deletions
|
@ -310,15 +310,14 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
|
||||||
{
|
{
|
||||||
case ROP4_BLACKNESS:
|
case ROP4_BLACKNESS:
|
||||||
//return(0x00000000);
|
//return(0x00000000);
|
||||||
|
|
||||||
|
|
||||||
#ifdef _M_IX86
|
#ifdef _M_IX86
|
||||||
if (BltInfo->DestRect.left!=0)
|
if (BltInfo->DestRect.left!=0)
|
||||||
{
|
{
|
||||||
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) ;
|
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
|
||||||
if (SourceX<=0) return TRUE;
|
|
||||||
|
|
||||||
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
||||||
{
|
{
|
||||||
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
|
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
|
||||||
BltInfo->DestSurface->lDelta +
|
BltInfo->DestSurface->lDelta +
|
||||||
BltInfo->DestRect.left), 0x00000000, SourceX);
|
BltInfo->DestRect.left), 0x00000000, SourceX);
|
||||||
|
@ -326,20 +325,21 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) *
|
||||||
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) *
|
BltInfo->DestRect.right) << 2;
|
||||||
BltInfo->DestRect.right) ;
|
|
||||||
|
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
|
#else
|
||||||
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
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);
|
DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0x00000000);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -347,13 +347,10 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
|
||||||
|
|
||||||
case ROP4_WHITENESS:
|
case ROP4_WHITENESS:
|
||||||
//return(0xFFFFFFFF);
|
//return(0xFFFFFFFF);
|
||||||
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) * BltInfo->DestRect.right) ;
|
#ifdef _M_IX86
|
||||||
if (SourceX<=0) return TRUE;
|
if (BltInfo->DestRect.left!=0)
|
||||||
|
{
|
||||||
#ifdef _M_IX86
|
SourceX = (BltInfo->DestRect.right - BltInfo->DestRect.left) << 2;
|
||||||
|
|
||||||
if ( BltInfo->DestRect.left!=0)
|
|
||||||
{
|
|
||||||
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
||||||
{
|
{
|
||||||
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
|
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + DestY *
|
||||||
|
@ -361,19 +358,24 @@ DIB_32BPP_BitBlt(PBLTINFO BltInfo)
|
||||||
BltInfo->DestRect.left), 0xFFFFFFFF, SourceX);
|
BltInfo->DestRect.left), 0xFFFFFFFF, SourceX);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset4( (PDWORD) (BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
|
SourceX = ((BltInfo->DestRect.bottom - BltInfo->DestRect.top) *
|
||||||
BltInfo->DestSurface->lDelta), 0xFFFFFFFF, SourceX);
|
BltInfo->DestRect.right) << 2;
|
||||||
|
|
||||||
|
memset4(BltInfo->DestSurface->pvScan0 + BltInfo->DestRect.top *
|
||||||
|
BltInfo->DestSurface->lDelta, 0xFFFFFFFF, SourceX);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
for (DestY=BltInfo->DestRect.bottom-1;DestY>=BltInfo->DestRect.top;DestY--)
|
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);
|
DIB_32BPP_HLine(BltInfo->DestSurface, BltInfo->DestRect.bottom, SourceX, DestY, 0xFFFFFFFF);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue