Vincent Povirk : d3dx9_36: Check for the TGA container format.

Alexandre Julliard julliard at winehq.org
Fri Oct 22 12:30:43 CDT 2010


Module: wine
Branch: master
Commit: a2e5321b0135f176ab8ef2d3d271ce001e55f8f2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a2e5321b0135f176ab8ef2d3d271ce001e55f8f2

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Tue Aug 24 14:29:38 2010 -0500

d3dx9_36: Check for the TGA container format.

---

 dlls/d3dx9_36/surface.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c
index f82f1b1..221e5f7 100644
--- a/dlls/d3dx9_36/surface.c
+++ b/dlls/d3dx9_36/surface.c
@@ -27,6 +27,10 @@
 WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
 
 
+/* Wine-specific WIC GUIDs */
+
+DEFINE_GUID(GUID_WineContainerFormatTga, 0x0c44fda1,0xa5c5,0x4298,0x96,0x85,0x47,0x3f,0xc1,0x7c,0xd3,0x22);
+
 /************************************************************
  * D3DXGetImageInfoFromFileInMemory
  *
@@ -93,6 +97,9 @@ HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3D
             } else if(IsEqualGUID(&container_format, &GUID_ContainerFormatJpeg)) {
                 TRACE("File type is JPG\n");
                 info->ImageFileFormat = D3DXIFF_JPG;
+            } else if(IsEqualGUID(&container_format, &GUID_WineContainerFormatTga)) {
+                TRACE("File type is TGA\n");
+                info->ImageFileFormat = D3DXIFF_TGA;
             } else {
                 WARN("Unsupported image file format %s\n", debugstr_guid(&container_format));
                 hr = D3DXERR_INVALIDDATA;




More information about the wine-cvs mailing list