mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
- Viewport hack to get some old D3D1 games to work
- TRACEing fix
This commit is contained in:
parent
3f61d28661
commit
e14233ae03
@ -1380,7 +1380,9 @@ Main_IDirect3DDeviceImpl_1_SetMatrix(LPDIRECT3DDEVICE iface,
|
|||||||
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice, iface);
|
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice, iface);
|
||||||
TRACE("(%p/%p)->(%08lx,%p)\n", This, iface, (DWORD) D3DMatHandle, lpD3DMatrix);
|
TRACE("(%p/%p)->(%08lx,%p)\n", This, iface, (DWORD) D3DMatHandle, lpD3DMatrix);
|
||||||
|
|
||||||
dump_D3DMATRIX(lpD3DMatrix);
|
if (TRACE_ON(ddraw)) {
|
||||||
|
dump_D3DMATRIX(lpD3DMatrix);
|
||||||
|
}
|
||||||
*((D3DMATRIX *) D3DMatHandle) = *lpD3DMatrix;
|
*((D3DMATRIX *) D3DMatHandle) = *lpD3DMatrix;
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
|
@ -185,6 +185,13 @@ Main_IDirect3DViewportImpl_3_2_1_SetViewport(LPDIRECT3DVIEWPORT3 iface,
|
|||||||
This->use_vp2 = 0;
|
This->use_vp2 = 0;
|
||||||
memset(&(This->viewports.vp1), 0, sizeof(This->viewports.vp1));
|
memset(&(This->viewports.vp1), 0, sizeof(This->viewports.vp1));
|
||||||
memcpy(&(This->viewports.vp1), lpData, lpData->dwSize);
|
memcpy(&(This->viewports.vp1), lpData, lpData->dwSize);
|
||||||
|
|
||||||
|
/* Tests on two games shows that these values are never used properly so overide
|
||||||
|
them with proper ones :-)
|
||||||
|
*/
|
||||||
|
This->viewports.vp1.dvMinZ = 0.0;
|
||||||
|
This->viewports.vp1.dvMaxZ = 1.0;
|
||||||
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user