Commit 580d7c9b authored by Rob McClinton's avatar Rob McClinton Committed by Alexandre Julliard

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

after creating the bits.
parent ecdafc37
......@@ -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 );
......
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