Author: gschneider Date: Sun Nov 9 08:00:31 2008 New Revision: 37259
URL: http://svn.reactos.org/svn/reactos?rev=37259&view=rev Log: - Don't hard code pixel size to 16bpp. - Fixes crashes in 8bpp and halved bitmaps in 32bpp. - This SRCCOPY code is not in use atm and will probably stay this way because it's slower then the version in win32k/dib.
Modified: trunk/reactos/tools/gendib/gendib.c
Modified: trunk/reactos/tools/gendib/gendib.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/gendib/gendib.c?rev=3... ============================================================================== --- trunk/reactos/tools/gendib/gendib.c [iso-8859-1] (original) +++ trunk/reactos/tools/gendib/gendib.c [iso-8859-1] Sun Nov 9 08:00:31 2008 @@ -542,7 +542,7 @@ if (ROPCODE_SRCCOPY == RopInfo->RopCode && 0 != (Flags & FLAG_TRIVIALXLATE) && Bpp == SourceBpp) { - Output(Out, "CenterCount = 2 * (BltInfo->DestRect.right -\n"); + Output(Out, "CenterCount = %u * (BltInfo->DestRect.right -\n", Bpp >> 3); Output(Out, " BltInfo->DestRect.left);\n"); } if (RopInfo->UsesPattern && 0 != (Flags & FLAG_PATTERNSURFACE))