Author: tkreuzer
Date: Wed Jan 12 00:26:20 2011
New Revision: 50362
URL:
http://svn.reactos.org/svn/reactos?rev=50362&view=rev
Log:
[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.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/dibobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/dibobj.c [iso-8859-1] Wed Jan 12
00:26:20 2011
@@ -1424,7 +1424,7 @@
// 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.
- totalSize = bi->biSizeImage && bi->biCompression != BI_RGB
+ totalSize = bi->biSizeImage && bi->biCompression != BI_RGB &&
bi->biCompression != BI_BITFIELDS
? bi->biSizeImage : (ULONG)(bm.bmWidthBytes * effHeight);
if (section)