- 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.

svn path=/trunk/; revision=37259
This commit is contained in:
Gregor Schneider 2008-11-09 14:00:31 +00:00
parent 6276513100
commit 5387d5fcac

View file

@ -542,7 +542,7 @@ CreateBitCase(FILE *Out, unsigned Bpp, PROPINFO RopInfo, int Flags,
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))