15 Mar
2016
15 Mar
'16
5:15 a.m.
Bruno Jesus <00cpxxx(a)gmail.com> writes:
@@ -1647,27 +1655,33 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
if (lpbiIn->biCompression != BI_RGB) { + int colors; + + if (lpbiIn->biClrUsed == 0) + colors = 1 << lpbiIn->biBitCount; + else + colors = lpbiIn->biClrUsed;
I don't think you want to do that for biBitCount > 8. -- Alexandre Julliard julliard(a)winehq.org