From f90ea67c2ced905986e8e462e4d02675e1098ac3 Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Sat, 11 Oct 2003 07:33:43 +0000 Subject: [PATCH] hrnm --- Cxbe.dsp | 2 +- Include/Cxbx.h | 8 ++++---- Source/Win32/CxbxKrnl/EmuD3D8.cpp | 22 ++++++++++++++++++++++ 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Cxbe.dsp b/Cxbe.dsp index b8d28abe0..2e50824b7 100644 --- a/Cxbe.dsp +++ b/Cxbe.dsp @@ -1,5 +1,5 @@ # Microsoft Developer Studio Project File - Name="Cxbe" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# Microsoft Developer Studio Generated Build File, Format Version 60000 # ** DO NOT EDIT ** # TARGTYPE "Win32 (x86) Console Application" 0x0103 diff --git a/Include/Cxbx.h b/Include/Cxbx.h index 4e963add6..2b43017b3 100644 --- a/Include/Cxbx.h +++ b/Include/Cxbx.h @@ -55,16 +55,16 @@ typedef signed short sint16; typedef signed long sint32; // define this to trace intercepted function calls -#define _DEBUG_TRACE +//#define _DEBUG_TRACE // define this to trace warnings -#define _DEBUG_WARNINGS +//#define _DEBUG_WARNINGS // version information #ifndef _DEBUG_TRACE -#define _CXBX_VERSION "0.7.9-Pre3" +#define _CXBX_VERSION "0.7.9-Pre4" #else -#define _CXBX_VERSION "0.7.9-Pre3-Trace" +#define _CXBX_VERSION "0.7.9-Pre4-Trace" #endif // round dwValue to the nearest multiple of dwMult diff --git a/Source/Win32/CxbxKrnl/EmuD3D8.cpp b/Source/Win32/CxbxKrnl/EmuD3D8.cpp index cd3ac04b4..9c0e0440a 100644 --- a/Source/Win32/CxbxKrnl/EmuD3D8.cpp +++ b/Source/Win32/CxbxKrnl/EmuD3D8.cpp @@ -2365,6 +2365,28 @@ HRESULT WINAPI XTL::EmuIDirect3DDevice8_SetVertexData2f HRESULT hRet = S_OK; + D3DINLINE_VERTEX *pD3DInlineVertex = (D3DINLINE_VERTEX*)&g_pD3DIVBData[g_pD3DIVBInd*sizeof(D3DINLINE_VERTEX)]; + + switch(Register) + { + case 0: // D3DVSDE_POSITION + { + pD3DInlineVertex->x = a*640.0f; + pD3DInlineVertex->y = b*480.0f; + pD3DInlineVertex->z = 0.0f; + pD3DInlineVertex->rhw = 1.0f; + + g_pD3DIVBInd++; + } + break; + + case 4: // D3DVSDE_SPECULAR + { + // TODO: hehe + } + break; + } + EmuSwapFS(); // XBox FS return hRet;