Changeset 40587 in vbox for trunk/src/VBox/Additions/WINNT
- Timestamp:
- Mar 23, 2012 9:08:44 AM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76988
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/d3d8_main.c
r28800 r40587 25 25 typedef HRESULT (WINAPI *ValidatePixelShaderProc)(DWORD* pixelshader, DWORD* reserved1, BOOL bool, DWORD* toto); 26 26 typedef HRESULT (WINAPI *ValidateVertexShaderProc)(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto); 27 28 static HRESULT WINAPI vboxD3D8GetSWInfoStub(void) 29 { 30 return E_FAIL; 31 } 32 33 static void WINAPI vboxDebugSetMuteStub(void) 34 { 35 36 } 37 38 static IDirect3D8* WINAPI vboxDirect3DCreate8Stub(UINT SDKVersion) 39 { 40 return NULL; 41 } 42 43 static HRESULT WINAPI vboxValidatePixelShaderStub(DWORD* pixelshader, DWORD* reserved1, BOOL bool, DWORD* toto) 44 { 45 return E_FAIL; 46 } 47 48 static HRESULT WINAPI vboxValidateVertexShaderStub(DWORD* vertexshader, DWORD* reserved1, DWORD* reserved2, BOOL bool, DWORD* toto) 49 { 50 return E_FAIL; 51 } 27 52 28 53 typedef struct _D3D8ExTag -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/d3d9_main.c
r35319 r40587 23 23 typedef IDirect3D9* (WINAPI *Direct3DCreate9Proc)(UINT SDKVersion); 24 24 typedef HRESULT (WINAPI *Direct3DCreate9ExProc)(UINT SDKVersion, IDirect3D9Ex **direct3d9ex); 25 /* @todo: this does not return a value according to MSDN */ 25 26 typedef void* (WINAPI *Direct3DShaderValidatorCreate9Proc)(void); 26 27 typedef int (WINAPI *D3DPERF_BeginEventProc)(D3DCOLOR color, LPCWSTR name); … … 31 32 typedef void (WINAPI *D3DPERF_SetMarkerProc)(D3DCOLOR color, LPCWSTR name); 32 33 typedef void (WINAPI *D3DPERF_SetRegionProc)(D3DCOLOR color, LPCWSTR name); 34 35 static void WINAPI vboxDebugSetMuteStub(void) 36 { 37 } 38 39 static IDirect3D9* WINAPI vboxDirect3DCreate9Stub(UINT SDKVersion) 40 { 41 return NULL; 42 } 43 44 static HRESULT WINAPI vboxDirect3DCreate9ExStub(UINT SDKVersion, IDirect3D9Ex **direct3d9ex) 45 { 46 if (direct3d9ex) 47 *direct3d9ex = NULL; 48 return E_FAIL; 49 } 50 51 static void* WINAPI vboxDirect3DShaderValidatorCreate9Stub(void) 52 { 53 return NULL; 54 } 55 56 static int WINAPI vboxD3DPERF_BeginEventStub(D3DCOLOR color, LPCWSTR name) 57 { 58 return 0; 59 } 60 61 static int WINAPI vboxD3DPERF_EndEventStub(void) 62 { 63 return 0; 64 } 65 66 static DWORD WINAPI vboxD3DPERF_GetStatusStub(void) 67 { 68 return 0; 69 } 70 71 static void WINAPI vboxD3DPERF_SetOptionsStub(DWORD options) 72 { 73 74 } 75 76 static BOOL WINAPI vboxD3DPERF_QueryRepeatFrameStub(void) 77 { 78 return 0; 79 } 80 81 static void WINAPI vboxD3DPERF_SetMarkerStub(D3DCOLOR color, LPCWSTR name) 82 { 83 84 } 85 86 static void WINAPI vboxD3DPERF_SetRegionStub(D3DCOLOR color, LPCWSTR name) 87 { 88 89 } 90 33 91 34 92 typedef struct _D3D9ExTag -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/switcher/switcher.h
r28800 r40587 23 23 24 24 #define SW_FILLPROC(dispatch, hdll, name) \ 25 dispatch.p##name = ( name##Proc) GetProcAddress(hdll, #name);25 dispatch.p##name = ((hdll) != NULL) ? (name##Proc) GetProcAddress((hdll), #name) : vbox##name##Stub; 26 26 27 27 #define SW_DISPINIT(dispatch) \
Note:
See TracChangeset
for help on using the changeset viewer.