Skip to content
Snippets Groups Projects
Commit aadf9efb authored by Dave Belanger's avatar Dave Belanger Committed by Alexandre Julliard
Browse files

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
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment