mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 20:30:04 +00:00
[WIN32K]
Don't trat BI_BITFIELDS as compressed format in DIB_CreateDIBSection. Fixes KSStudio. Why it was introduced by r48359? I don't know. It was broken before. I refrain from making any more comments about that piece of ... code. See issue #5781 for more details. svn path=/trunk/; revision=50362
This commit is contained in:
parent
10c634a79d
commit
9e27e5706e
|
@ -1424,7 +1424,7 @@ DIB_CreateDIBSection(
|
||||||
|
|
||||||
// Get storage location for DIB bits. Only use biSizeImage if it's valid and
|
// Get storage location for DIB bits. Only use biSizeImage if it's valid and
|
||||||
// we're dealing with a compressed bitmap. Otherwise, use width * height.
|
// we're dealing with a compressed bitmap. Otherwise, use width * height.
|
||||||
totalSize = bi->biSizeImage && bi->biCompression != BI_RGB
|
totalSize = bi->biSizeImage && bi->biCompression != BI_RGB && bi->biCompression != BI_BITFIELDS
|
||||||
? bi->biSizeImage : (ULONG)(bm.bmWidthBytes * effHeight);
|
? bi->biSizeImage : (ULONG)(bm.bmWidthBytes * effHeight);
|
||||||
|
|
||||||
if (section)
|
if (section)
|
||||||
|
|
Loading…
Reference in a new issue