From 7dec20d84a474597c083b7970de95f71ce621657 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Tue, 5 Feb 2008 17:48:45 +0100 Subject: [PATCH] d3dx9: Implement D3DXGetDriverLevel. --- dlls/d3dx9_36/d3dx9_36.spec | 2 +- dlls/d3dx9_36/d3dx9_36_main.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/d3dx9_36/d3dx9_36.spec b/dlls/d3dx9_36/d3dx9_36.spec index 8113557fb7c..607a09876c4 100644 --- a/dlls/d3dx9_36/d3dx9_36.spec +++ b/dlls/d3dx9_36/d3dx9_36.spec @@ -149,7 +149,7 @@ @ stdcall D3DXGeneratePMesh(ptr ptr ptr ptr long long ptr) d3dx8.D3DXGeneratePMesh @ stub D3DXGetDeclLength @ stub D3DXGetDeclVertexSize -@ stub D3DXGetDriverLevel +@ stdcall D3DXGetDriverLevel(ptr) @ stdcall D3DXGetFVFVertexSize(long) d3dx8.D3DXGetFVFVertexSize @ stdcall D3DXGetImageInfoFromFileA(ptr ptr) d3dx8.D3DXGetImageInfoFromFileA @ stdcall D3DXGetImageInfoFromFileInMemory(ptr long ptr) d3dx8.D3DXGetImageInfoFromFileInMemory diff --git a/dlls/d3dx9_36/d3dx9_36_main.c b/dlls/d3dx9_36/d3dx9_36_main.c index c5d671635b4..6ccb78c9b3a 100644 --- a/dlls/d3dx9_36/d3dx9_36_main.c +++ b/dlls/d3dx9_36/d3dx9_36_main.c @@ -2,6 +2,7 @@ * Direct3D X 9 main file * * Copyright (C) 2007 David Adam + * Copyright (C) 2008 Tony Wasserka * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -51,3 +52,12 @@ BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID reserved) } return TRUE; } + +/*********************************************************************** + * D3DXGetDriverLevel. + * Returns always 900 (DX 9) for us + */ +UINT WINAPI D3DXGetDriverLevel(LPDIRECT3DDEVICE9 device) +{ + return 900; +}