22#include " IDirect3D9.h"
33#include " IDirect3DDevice9.h"
44#include " xrD3D9-Null_OutProc.h"
5+ #include < stdio.h>
56
6- #include < stdlib.h>
7- #include < objbase.h>
8- #include < windows.h>
9- #include " stdio.h"
107
118const GUID DECLSPEC_SELECTANY IID_IDirect3D9;
129
@@ -22,7 +19,7 @@ ULONG xrIDirect3D9::AddRef(void)
2219{
2320 APIDEBUG (" xrIDirect3D9::AddRef" );
2421 m_refCount++;
25- return ULONG_Proc ( m_refCount) ;
22+ return m_refCount;
2623}
2724
2825ULONG xrIDirect3D9::Release (void )
@@ -32,9 +29,9 @@ ULONG xrIDirect3D9::Release(void)
3229 if (m_refCount < 0 )
3330 {
3431 delete this ;
35- return ULONG_Proc (- 1 ) ;
32+ return - 1 ;
3633 }
37- return ULONG_Proc ( m_refCount) ;
34+ return m_refCount;
3835}
3936
4037HRESULT xrIDirect3D9::QueryInterface (const IID &iid, void FAR* FAR* ppvObj)
@@ -44,20 +41,20 @@ HRESULT xrIDirect3D9::QueryInterface(const IID &iid, void FAR* FAR* ppvObj)
4441 {
4542 *ppvObj = this ;
4643 AddRef ();
47- return HRESULT_Proc ( NOERROR) ;
44+ return NOERROR;
4845 }
49- return HRESULT_Proc ( E_NOINTERFACE) ;
46+ return E_NOINTERFACE;
5047}
5148
5249HRESULT xrIDirect3D9::RegisterSoftwareDevice (void * pInitializeFunction)
5350{
5451 APIDEBUG (" xrIDirect3D9::RegisterSoftwareDevice" );
55- return HRESULT_Proc ( S_OK) ;
52+ return S_OK;
5653};
5754UINT xrIDirect3D9::GetAdapterCount ()
5855{
5956 APIDEBUG (" xrIDirect3D9::GetAdapterCount" );
60- return ULONG_Proc ( 1 ) ;
57+ return 1 ;
6158};
6259
6360HRESULT xrIDirect3D9::GetAdapterIdentifier (UINT Adapter,DWORD Flags,D3DADAPTER_IDENTIFIER9* pIdentifier)
@@ -66,56 +63,56 @@ HRESULT xrIDirect3D9::GetAdapterIdentifier(UINT Adapter,DWORD Flags,D3DADAPTER_I
6663 sprintf_s (pIdentifier->Driver , " Default Driver" );
6764 sprintf_s (pIdentifier->Description , " Default X-Ray Dedicated Adapter" );
6865 sprintf_s (pIdentifier->DeviceName , " Dedicated" );
69- return HRESULT_Proc ( S_OK) ;
66+ return S_OK;
7067};
7168UINT xrIDirect3D9::GetAdapterModeCount ( UINT Adapter,D3DFORMAT Format)
7269{
7370 APIDEBUG (" xrIDirect3D9::GetAdapterModeCount" );
74- return ULONG_Proc ( 1 ) ;
71+ return 1 ;
7572};
7673
7774HRESULT xrIDirect3D9::EnumAdapterModes (UINT Adapter,D3DFORMAT Format,UINT Mode,D3DDISPLAYMODE* pMode)
7875{
7976 APIDEBUG (" xrIDirect3D9::EnumAdapterModes" );
80- return HRESULT_Proc ( S_OK) ;
77+ return S_OK;
8178};
8279HRESULT xrIDirect3D9::GetAdapterDisplayMode ( UINT Adapter,D3DDISPLAYMODE* pMode)
8380{
8481 APIDEBUG (" xrIDirect3D9::GetAdapterDisplayMode" );
8582 pMode->Format = D3DFMT_A8R8G8B8;
86- return HRESULT_Proc ( S_OK) ;
83+ return S_OK;
8784};
8885HRESULT xrIDirect3D9::CheckDeviceType ( UINT Adapter,D3DDEVTYPE DevType,D3DFORMAT AdapterFormat,D3DFORMAT BackBufferFormat,BOOL bWindowed)
8986{
9087 APIDEBUG (" xrIDirect3D9::CheckDeviceType" );
91- return HRESULT_Proc ( S_OK) ;
88+ return S_OK;
9289};
9390HRESULT xrIDirect3D9::CheckDeviceFormat ( UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,DWORD Usage,D3DRESOURCETYPE RType,D3DFORMAT CheckFormat)
9491{
9592 APIDEBUG (" xrIDirect3D9::CheckDeviceFormat" );
96- return HRESULT_Proc ( S_OK) ;
93+ return S_OK;
9794};
9895HRESULT xrIDirect3D9::CheckDeviceMultiSampleType ( UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SurfaceFormat,BOOL Windowed,D3DMULTISAMPLE_TYPE MultiSampleType,DWORD* pQualityLevels)
9996{
10097 APIDEBUG (" xrIDirect3D9::CheckDeviceMultiSampleType" );
101- return HRESULT_Proc ( S_OK) ;
98+ return S_OK;
10299};
103100HRESULT xrIDirect3D9::CheckDepthStencilMatch ( UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT AdapterFormat,D3DFORMAT RenderTargetFormat,D3DFORMAT DepthStencilFormat)
104101{
105102 APIDEBUG (" xrIDirect3D9::CheckDepthStencilMatch" );
106- return HRESULT_Proc ( S_OK) ;
103+ return S_OK;
107104};
108105HRESULT xrIDirect3D9::CheckDeviceFormatConversion ( UINT Adapter,D3DDEVTYPE DeviceType,D3DFORMAT SourceFormat,D3DFORMAT TargetFormat)
109106{
110107 APIDEBUG (" xrIDirect3D9::CheckDeviceFormatConversion" );
111- return HRESULT_Proc ( S_OK) ;
108+ return S_OK;
112109};
113110HRESULT xrIDirect3D9::GetDeviceCaps ( UINT Adapter,D3DDEVTYPE DeviceType,D3DCAPS9* pCaps)
114111{
115112 APIDEBUG (" xrIDirect3D9::GetDeviceCaps" );
116113 if (pCaps)
117114 ZeroMemory (pCaps,sizeof (D3DCAPS9));
118- return HRESULT_Proc ( S_OK) ;
115+ return S_OK;
119116};
120117HMONITOR xrIDirect3D9::GetAdapterMonitor ( UINT Adapter)
121118{
@@ -129,19 +126,5 @@ HRESULT xrIDirect3D9::CreateDevice (UINT Adapter,D3DDEVTYPE DeviceType,HWND hFoc
129126 *ppReturnedDeviceInterface = NULL ;
130127 xrIDirect3DDevice9* I = new xrIDirect3DDevice9 (this , pPresentationParameters);
131128 *ppReturnedDeviceInterface = I;
132- return HRESULT_Proc ( S_OK) ;
129+ return S_OK;
133130};
134- // -------------------------------------------------------------------
135- /*
136- HRESULT xrIDirect3D9::HRESULT_Proc(HRESULT ret)
137- {
138- return ret;
139- }
140-
141- ULONG xrIDirect3D9::ULONG_Proc(ULONG ret)
142- {
143- return ret;
144- }
145- */
146-
147-
0 commit comments