Module: wine Branch: master Commit: b47c92bae323424308fd9be54a10d0af4c0365a9 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b47c92bae323424308fd9be54a...
Author: Józef Kucia joseph.kucia@gmail.com Date: Sun May 13 23:00:10 2012 +0200
d3dx9: Add traces.
---
dlls/d3dx9_36/surface.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c index ef4833f..28975b9 100644 --- a/dlls/d3dx9_36/surface.c +++ b/dlls/d3dx9_36/surface.c @@ -334,6 +334,8 @@ static HRESULT get_image_info_from_dds(const void *buffer, UINT length, D3DXIMAG if (info->Format == D3DFMT_UNKNOWN) return D3DXERR_INVALIDDATA;
+ TRACE("Pixel format is %#x\n", info->Format); + if (header->caps2 & DDS_CAPS2_VOLUME) { info->Depth = header->depth; @@ -528,8 +530,10 @@ HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3D if (!info) return D3D_OK;
- if ((datasize >= 4) && !strncmp(data, "DDS ", 4)) + if ((datasize >= 4) && !strncmp(data, "DDS ", 4)) { + TRACE("File type is DDS\n"); return get_image_info_from_dds(data, datasize, info); + }
initresult = CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);