http://bugs.winehq.org/show_bug.cgi?id=27720
Travis Athougies iammisc@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |iammisc@gmail.com
--- Comment #1 from Travis Athougies iammisc@gmail.com 2011-07-13 14:02:24 CDT --- Right now, all indexed formats in D3DXGetImageInfoFromFileInMemory are coerced into the D3DFMT_L8 format, which is not only unsupported by the other D3DX surface functions, but also wrong. These formats are returned for bitmaps with an associated palette. This palette needs to be retrieved from IWICBitmapDecode in D3DXLoadSurfaceFromFileInMemory, converted into the equivalent D3D PALETTEENTRY array and passed on to D3DXLoadSurfaceFromMemory.
Then, D3DXLoadSurfaceFromMemory needs to be tweaked so that it can copy data from and indexed bitmap to an indexed surface, using the source and destination palette to match colors.