Commit aadf9efb authored by Dave Belanger's avatar Dave Belanger Committed by Alexandre Julliard

In CreateDIBitmap, the fact that the bits init flag is set or not

doesn't have anything to do with the color state of the DIB.
parent f3ed10a2
......@@ -757,8 +757,7 @@ HBITMAP WINAPI CreateDIBitmap( HDC hdc, const BITMAPINFOHEADER *header,
/* In all other cases, we create a color bitmap. */
if (bpp != 1) fColor = TRUE;
else if ((coloruse != DIB_RGB_COLORS) ||
(init != CBM_INIT) || !data) fColor = FALSE;
else if ((coloruse != DIB_RGB_COLORS) || !data) fColor = FALSE;
else
{
if (data->bmiHeader.biSize == sizeof(BITMAPINFOHEADER))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment