Module: wine Branch: master Commit: 9e67f954f1e6c4c0f2cdeb9e2d83cfc0b3492af0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e67f954f1e6c4c0f2cdeb9e2d...
Author: Christian Costa titan.costa@wanadoo.fr Date: Mon Apr 12 11:21:14 2010 +0200
d3dx9_36: Add support for 32-bit BGRA in D3DXGetImageInfoFromFileInMemory.
---
dlls/d3dx9_36/surface.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index 0a882b5..7504811 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -129,6 +129,8 @@ HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3D info->Format = D3DFMT_R8G8B8; else if (IsEqualGUID(&pixel_format, &GUID_WICPixelFormat32bppBGR)) info->Format = D3DFMT_X8R8G8B8; + else if (IsEqualGUID(&pixel_format, &GUID_WICPixelFormat32bppBGRA)) + info->Format = D3DFMT_A8R8G8B8; else { WARN("Unsupported pixel format %s\n", debugstr_guid(&pixel_format)); hr = D3DXERR_INVALIDDATA;