On 11/25/05, Stefan Dösinger stefandoesinger@gmx.at wrote:
Hello, I am trying to get the Diablo II Demo with Direct3D working, to test it with my D3D7 implementation. However, the Video test program refuses the D3D implementation and offers only DDraw. This happens with my implementation and the original in Wine.
A few people said that D3D works. I have looked at the AppDB, but it didn't contain any information.
Can anyone help me? How can I get this game to start with D3D?
Thanks Stefan
Apparently the video test won't detect d3d right with a wine desktop. Disabling it makes it work again. Also I had to hack the gamma functions to make the game run in d3d now. I guess this means that gamma controls are now broken.
--- dlls/ddraw/surface_gamma.c-orig 2005-11-25 12:45:49.000000000 -0700 +++ dlls/ddraw/surface_gamma.c 2005-11-25 12:46:44.000000000 -0700 @@ -58,7 +58,8 @@ { ICOM_THIS_FROM(IDirectDrawSurfaceImpl, IDirectDrawGammaControl, iface); TRACE("(%p)->(%08lx,%p)\n", iface,dwFlags,lpGammaRamp); - return This->get_gamma_ramp(This, dwFlags, lpGammaRamp); +// return This->get_gamma_ramp(This, dwFlags, lpGammaRamp); + return DD_OK; }
static HRESULT WINAPI @@ -66,7 +67,8 @@ { ICOM_THIS_FROM(IDirectDrawSurfaceImpl, IDirectDrawGammaControl, iface); TRACE("(%p)->(%08lx,%p)\n", iface,dwFlags,lpGammaRamp); - return This->set_gamma_ramp(This, dwFlags, lpGammaRamp); +// return This->set_gamma_ramp(This, dwFlags, lpGammaRamp); + return DD_OK; }
const IDirectDrawGammaControlVtbl DDRAW_IDDGC_VTable =