mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:05:49 +00:00
X11DRV_GetDIBits: Don't clear the biCompression==BI_BITFIELDS flag
after creating the bits.
This commit is contained in:
parent
ecdafc37a2
commit
580d7c9be3
|
@ -5043,13 +5043,18 @@ INT X11DRV_GetDIBits( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, UINT startscan,
|
||||||
info->bmiHeader.biHeight,
|
info->bmiHeader.biHeight,
|
||||||
info->bmiHeader.biBitCount );
|
info->bmiHeader.biBitCount );
|
||||||
|
|
||||||
info->bmiHeader.biCompression = 0;
|
|
||||||
if (descr.compression == BI_BITFIELDS)
|
if (descr.compression == BI_BITFIELDS)
|
||||||
{
|
{
|
||||||
*(DWORD *)info->bmiColors = descr.rMask;
|
*(DWORD *)info->bmiColors = descr.rMask;
|
||||||
*((DWORD *)info->bmiColors+1) = descr.gMask;
|
*((DWORD *)info->bmiColors+1) = descr.gMask;
|
||||||
*((DWORD *)info->bmiColors+2) = descr.bMask;
|
*((DWORD *)info->bmiColors+2) = descr.bMask;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* if RLE or JPEG compression were supported,
|
||||||
|
* this line would be invalid. */
|
||||||
|
info->bmiHeader.biCompression = 0;
|
||||||
|
}
|
||||||
|
|
||||||
done:
|
done:
|
||||||
GDI_ReleaseObj( dc->hPalette );
|
GDI_ReleaseObj( dc->hPalette );
|
||||||
|
|
Loading…
Reference in a new issue