[PATCH 1/3] d3dx9_36: Add support for DIB file in D3DXGetImageInfoFromFileInMemory.

Alexandre Julliard julliard at winehq.org
Mon Apr 22 05:45:38 CDT 2013


Christian Costa <titan.costa at gmail.com> writes:

> +    if (header_size == sizeof(BITMAPINFOHEADER))
> +    {
> +        BITMAPINFOHEADER *header = (BITMAPINFOHEADER*)*data;
> +        ULONG count = header->biClrUsed;
> +
> +        if (!count && header->biBitCount <= 8)
> +            count = 1 << header->biBitCount;
> +
> +        offset = sizeof(BITMAPFILEHEADER) + header_size + sizeof(RGBQUAD) * count;

This isn't correct for all DIB types.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list