Author: greatlrd
Date: Tue Apr 18 13:47:51 2006
New Revision: 21645
URL:
http://svn.reactos.ru/svn/reactos?rev=21645&view=rev
Log:
Fix the xlate bug in 24dib correct fix more buttom showing right in firefox now
Modified:
trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c
Modified: trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/subsystems/win32/win32k/dib…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c (original)
+++ trunk/reactos/subsystems/win32/win32k/dib/dib24bpp.c Tue Apr 18 13:47:51 2006
@@ -286,7 +286,21 @@
{
/* FIXME */
//DPRINT1("DIB_24BPP_Bitblt: Unhandled BltInfo->XlateSourceToDest for 16
-> 16 copy\n");
- return DIB_16BPP_BitBltSrcCopy(BltInfo);
+ // return DIB_16BPP_BitBltSrcCopy(BltInfo);
+ sx = BltInfo->SourcePoint.x;
+ sy = BltInfo->SourcePoint.y;
+
+ for (j=BltInfo->DestRect.top; j<BltInfo->DestRect.bottom; j++)
+ {
+ sx = BltInfo->SourcePoint.x;
+ for (i=BltInfo->DestRect.left; i<BltInfo->DestRect.right; i++)
+ {
+ DWORD pixel = DIB_24BPP_GetPixel(BltInfo->SourceSurface, sx, sy);
+ DIB_24BPP_PutPixel(BltInfo->DestSurface, i, j,
XLATEOBJ_iXlate(BltInfo->XlateSourceToDest, pixel));
+ sx++;
+ }
+ sy++;
+ }
}
break;