X11DRV_GetDIBits: Don't clear the biCompression==BI_BITFIELDS flag

after creating the bits.
This commit is contained in:
Rob McClinton 2002-07-16 01:13:55 +00:00 committed by Alexandre Julliard
parent ecdafc37a2
commit 580d7c9be3

View file

@ -5043,13 +5043,18 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
info->bmiHeader.biHeight,
info->bmiHeader.biBitCount );
info->bmiHeader.biCompression = 0;
if (descr.compression == BI_BITFIELDS)
{
*(DWORD *)info->bmiColors = descr.rMask;
*((DWORD *)info->bmiColors+1) = descr.gMask;
*((DWORD *)info->bmiColors+2) = descr.bMask;
}
else
{
/* if RLE or JPEG compression were supported,
* this line would be invalid. */
info->bmiHeader.biCompression = 0;
}
done:
GDI_ReleaseObj( dc->hPalette );