Commit b7bb7861 authored by Alexandre Julliard's avatar Alexandre Julliard

wing32: Use the correct constant names for CreateDIBSection.

parent c054d7bc
......@@ -178,7 +178,7 @@ HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi, SEGPTR *bits)
TRACE("(%d,%p,%p): create %dx%dx%d bitmap\n", hdc, bmpi, bits,
bmpi->bmiHeader.biWidth, bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes);
hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, BI_RGB, &bits32, 0, 0 );
hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, DIB_RGB_COLORS, &bits32, 0, 0 );
if (hbitmap)
{
SEGPTR segptr = alloc_segptr_bits( hbitmap, bits32 );
......
......@@ -60,7 +60,7 @@ BOOL WINAPI WinGRecommendDIBFormat( BITMAPINFO *bmi )
*/
HBITMAP WINAPI WinGCreateBitmap( HDC hdc, BITMAPINFO *bmi, void **bits )
{
return CreateDIBSection( hdc, bmi, 0, bits, 0, 0 );
return CreateDIBSection( hdc, bmi, DIB_RGB_COLORS, bits, 0, 0 );
}
/***********************************************************************
......
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