[PATCH] d3dx9: Add stubs for the D3DXGetImageInfo function group

Tony Wasserka tony.wasserka at freenet.de
Sat May 16 05:20:29 CDT 2009


---
 dlls/d3dx9_36/Makefile.in   |    3 +-
 dlls/d3dx9_36/d3dx9_36.spec |   10 +++---
 dlls/d3dx9_36/surface.c     |   62 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+), 6 deletions(-)
 create mode 100644 dlls/d3dx9_36/surface.c

diff --git a/dlls/d3dx9_36/Makefile.in b/dlls/d3dx9_36/Makefile.in
index 7cd5c3c..16fd41c 100644
--- a/dlls/d3dx9_36/Makefile.in
+++ b/dlls/d3dx9_36/Makefile.in
@@ -12,7 +12,8 @@ C_SRCS = \
 	math.c \
 	mesh.c \
 	shader.c \
-	sprite.c
+	sprite.c \
+	surface.c
 
 RC_SRCS = version.rc
 
diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec
index 8a5082d..1c8eecb 100644
--- a/dlls/d3dx9_36/d3dx9_36.spec
+++ b/dlls/d3dx9_36/d3dx9_36.spec
@@ -151,11 +151,11 @@
 @ stub D3DXGetDeclVertexSize
 @ stdcall D3DXGetDriverLevel(ptr)
 @ stdcall D3DXGetFVFVertexSize(long)
-@ stdcall D3DXGetImageInfoFromFileA(ptr ptr) d3dx8.D3DXGetImageInfoFromFileA
-@ stdcall D3DXGetImageInfoFromFileInMemory(ptr long ptr) d3dx8.D3DXGetImageInfoFromFileInMemory
-@ stdcall D3DXGetImageInfoFromFileW(ptr ptr) d3dx8.D3DXGetImageInfoFromFileW
-@ stdcall D3DXGetImageInfoFromResourceA(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceA
-@ stdcall D3DXGetImageInfoFromResourceW(long ptr ptr) d3dx8.D3DXGetImageInfoFromResourceW
+@ stdcall D3DXGetImageInfoFromFileA(str ptr)
+@ stdcall D3DXGetImageInfoFromFileInMemory(ptr long ptr)
+@ stdcall D3DXGetImageInfoFromFileW(wstr ptr)
+@ stdcall D3DXGetImageInfoFromResourceA(long str ptr)
+@ stdcall D3DXGetImageInfoFromResourceW(long wstr ptr)
 @ stdcall D3DXGetPixelShaderProfile(ptr)
 @ stub D3DXGetShaderConstantTable
 @ stub D3DXGetShaderConstantTableEx
diff --git a/dlls/d3dx9_36/surface.c b/dlls/d3dx9_36/surface.c
new file mode 100644
index 0000000..2983ae8
--- /dev/null
+++ b/dlls/d3dx9_36/surface.c
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2009 Tony Wasserka
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "wine/debug.h"
+#include "d3dx9_36_private.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
+
+/****************************
+ * D3DXGetImageInfoFromFile *
+ ****************************/
+HRESULT WINAPI D3DXGetImageInfoFromFileA(LPCSTR file, D3DXIMAGE_INFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromFileW(LPCWSTR file, D3DXIMAGE_INFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
+
+/*******************************
+ * D3DXGetImageInfoFromResource *
+ *******************************/
+HRESULT WINAPI D3DXGetImageInfoFromResourceA(HMODULE module, LPCSTR resource, D3DXIMAGE_INFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
+
+HRESULT WINAPI D3DXGetImageInfoFromResourceW(HMODULE module, LPCWSTR resource, D3DXIMAGE_INFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
+
+/************************************
+ * D3DXGetImageInfoFromFileInMemory *
+ ************************************/
+HRESULT WINAPI D3DXGetImageInfoFromFileInMemory(LPCVOID data, UINT datasize, D3DXIMAGE_INFO *info)
+{
+    FIXME("stub\n");
+    return E_NOTIMPL;
+}
-- 
1.6.0.2


--------------000106070608090904040703--



More information about the wine-patches mailing list