gdi32: Don't use biSizeImage for a BI_BITFIELDS dib.
This commit is contained in:
parent
d84ea74ec8
commit
67a5f256c4
|
@ -61,7 +61,7 @@ static HGLOBAL16 dib_copy(const BITMAPINFO *info, UINT coloruse)
|
||||||
HGLOBAL16 hmem;
|
HGLOBAL16 hmem;
|
||||||
INT size;
|
INT size;
|
||||||
|
|
||||||
if (info->bmiHeader.biCompression)
|
if (info->bmiHeader.biCompression != BI_RGB && info->bmiHeader.biCompression != BI_BITFIELDS)
|
||||||
size = info->bmiHeader.biSizeImage;
|
size = info->bmiHeader.biSizeImage;
|
||||||
else
|
else
|
||||||
size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth,
|
size = DIB_GetDIBImageBytes(info->bmiHeader.biWidth,
|
||||||
|
|
Loading…
Reference in New Issue