mirror of
https://github.com/reactos/reactos.git
synced 2024-07-22 04:08:08 +00:00
- 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:
parent
6276513100
commit
5387d5fcac
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue