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.
This commit is contained in:
Dave Belanger 2003-10-15 02:32:00 +00:00 committed by Alexandre Julliard
parent f3ed10a246
commit aadf9efb86
1 changed files with 1 additions and 2 deletions

View File

@ -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))