Commit e14233ae authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

- Viewport hack to get some old D3D1 games to work

- TRACEing fix
parent 3f61d286
......@@ -1380,7 +1380,9 @@ Main_IDirect3DDeviceImpl_1_SetMatrix(LPDIRECT3DDEVICE iface,
ICOM_THIS_FROM(IDirect3DDeviceImpl, IDirect3DDevice, iface);
TRACE("(%p/%p)->(%08lx,%p)\n", This, iface, (DWORD) D3DMatHandle, lpD3DMatrix);
dump_D3DMATRIX(lpD3DMatrix);
if (TRACE_ON(ddraw)) {
dump_D3DMATRIX(lpD3DMatrix);
}
*((D3DMATRIX *) D3DMatHandle) = *lpD3DMatrix;
return DD_OK;
......
......@@ -185,6 +185,13 @@ Main_IDirect3DViewportImpl_3_2_1_SetViewport(LPDIRECT3DVIEWPORT3 iface,
This->use_vp2 = 0;
memset(&(This->viewports.vp1), 0, sizeof(This->viewports.vp1));
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment