[PATCH 2/7] d3dx9: Add a D3DXCheckTextureRequirements stub.

Philip Nilsson pnilsson at nullref.se
Fri Sep 19 10:39:07 CDT 2008


---
 dlls/d3dx9_36/Makefile.in   |    3 ++-
 dlls/d3dx9_36/d3dx9_36.spec |    2 +-
 dlls/d3dx9_36/texture.c     |   41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 2 deletions(-)
 create mode 100644 dlls/d3dx9_36/texture.c

diff --git a/dlls/d3dx9_36/Makefile.in b/dlls/d3dx9_36/Makefile.in
index 0b5a3d3..d4ffbbc 100644
--- a/dlls/d3dx9_36/Makefile.in
+++ b/dlls/d3dx9_36/Makefile.in
@@ -11,7 +11,8 @@ C_SRCS = \
 	font.c \
 	math.c \
 	shader.c \
-	sprite.c
+	sprite.c \
+	texture.c
 
 RC_SRCS = version.rc
 
diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec
index 2e68ba2..8581397 100644
--- a/dlls/d3dx9_36/d3dx9_36.spec
+++ b/dlls/d3dx9_36/d3dx9_36.spec
@@ -5,7 +5,7 @@
 @ stub D3DXAssembleShaderFromResourceW
 @ stdcall D3DXBoxBoundProbe(ptr ptr ptr ptr) d3dx8.D3DXBoxBoundProbe
 @ stub D3DXCheckCubeTextureRequirements
-@ stub D3DXCheckTextureRequirements
+@ stdcall D3DXCheckTextureRequirements(ptr ptr ptr ptr long ptr long)
 @ stdcall D3DXCheckVersion(long long)
 @ stub D3DXCheckVolumeTextureRequirements
 @ stub D3DXCleanMesh
diff --git a/dlls/d3dx9_36/texture.c b/dlls/d3dx9_36/texture.c
new file mode 100644
index 0000000..7b63d8f
--- /dev/null
+++ b/dlls/d3dx9_36/texture.c
@@ -0,0 +1,41 @@
+/*
+ * Surface and texture functions
+ *
+ * Copyright (C) 2008 Philip Nilsson
+ *
+ * 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 "config.h"
+#include <stdarg.h>
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "d3dx9.h"
+#include "wine/debug.h"
+WINE_DEFAULT_DEBUG_CHANNEL(d3dx);
+
+/*************************************************************************
+ * D3DXCheckTextureRequirements
+ */
+HRESULT WINAPI D3DXCheckTextureRequirements(
+    LPDIRECT3DDEVICE9 device, UINT* width, UINT* height, UINT* miplevels,
+    DWORD usage, D3DFORMAT* format, D3DPOOL pool)
+{
+    FIXME("(%p, %p, %p, %p, %#x, %p, %#x): stub\n",
+        device, width, height, miplevels, usage, format, pool);
+
+    return D3D_OK;
+}
-- 
1.6.0.2




More information about the wine-patches mailing list