Cleanup debug msg allot

svn path=/trunk/; revision=27041
This commit is contained in:
Magnus Olsen 2007-06-07 11:28:23 +00:00
parent 6ed41fe051
commit 3246f9583b

View file

@ -412,7 +412,6 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
D3DHAL_GLOBALDRIVERDATA mD3dDriverData; D3DHAL_GLOBALDRIVERDATA mD3dDriverData;
DDHAL_DDEXEBUFCALLBACKS mD3dBufferCallbacks; DDHAL_DDEXEBUFCALLBACKS mD3dBufferCallbacks;
LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface; LPDDRAWI_DIRECTDRAW_INT This = (LPDDRAWI_DIRECTDRAW_INT)iface;
INT count;
DX_WINDBG_trace(); DX_WINDBG_trace();
@ -472,10 +471,9 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
// FIXME Close DX fristcall and second call // FIXME Close DX fristcall and second call
return DD_FALSE; return DD_FALSE;
} }
#if 0
DX_STUB_str("Here\n"); DX_STUB_str("Trying alloc FourCCC \n");
/* Alloc mpFourCC */ /* Alloc mpFourCC */
if (This->lpLcl->lpGbl->lpdwFourCC != NULL) if (This->lpLcl->lpGbl->lpdwFourCC != NULL)
@ -483,36 +481,29 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
DxHeapMemFree(This->lpLcl->lpGbl->lpdwFourCC); DxHeapMemFree(This->lpLcl->lpGbl->lpdwFourCC);
} }
// if (mHALInfo.ddCaps.dwNumFourCCCodes > 0 ) if (mHALInfo.ddCaps.dwNumFourCCCodes > 0 )
// { {
//mpFourCC = (DWORD *) DxHeapMemAlloc( sizeof(DWORD) * 21); DxHeapMemAlloc(mpFourCC, sizeof(DWORD) * 21);
/* DrFred uncomet line 499 see if u getting werid crash in
* u computer, run the ddraw_test around 3-4 times mpFourCC = (DWORD *) DxHeapMemAlloc(sizeof(DWORD) * (mHALInfo.ddCaps.dwNumFourCCCodes + 2));
*/
//DxHeapMemAlloc(mpFourCC, sizeof(DWORD) * 21);
// mpFourCC = (DWORD *) DxHeapMemAlloc(sizeof(DWORD) * (mHALInfo.ddCaps.dwNumFourCCCodes + 2));
/*
if (mpFourCC == NULL) if (mpFourCC == NULL)
{ {
DxHeapMemFree(ddgbl.lpDDCBtmp); DxHeapMemFree(ddgbl.lpDDCBtmp);
// FIXME Close DX fristcall and second call // FIXME Close DX fristcall and second call
return DD_FALSE; return DD_FALSE;
} }
*/
// }
DX_STUB_str("Here\n");
{
char buffer[2048];
sprintf ( buffer, "test %d %d\n", mpFourCC, mHALInfo.ddCaps.dwNumFourCCCodes);
OutputDebugStringA(buffer);
} }
DX_STUB_str("End Trying alloc FourCCC\n");
#endif
/* Alloc mpTextures */ /* Alloc mpTextures */
#if 0 #if 0
DX_STUB_str("1 Here\n");
if (This->lpLcl->lpGbl->texture != NULL) if (This->lpLcl->lpGbl->texture != NULL)
{ {
@ -530,11 +521,13 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
// FIXME Close DX fristcall and second call // FIXME Close DX fristcall and second call
} }
} }
DX_STUB_str("2 Here\n");
#else #else
mpTextures = NULL; mpTextures = NULL;
#endif #endif
DX_STUB_str("Here\n");
/* Get all basic data from the driver */ /* Get all basic data from the driver */
if (!DdQueryDirectDrawObject( if (!DdQueryDirectDrawObject(
@ -557,12 +550,6 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
return DD_FALSE; return DD_FALSE;
} }
{
char buffer[2048];
sprintf ( buffer, "3 test %d %d\n", mpFourCC, mHALInfo.ddCaps.dwNumFourCCCodes);
OutputDebugStringA(buffer);
}
memcpy(&ddgbl.vmiData, &mHALInfo.vmiData,sizeof(VIDMEMINFO)); memcpy(&ddgbl.vmiData, &mHALInfo.vmiData,sizeof(VIDMEMINFO));
@ -599,29 +586,5 @@ StartDirectDrawHal(LPDIRECTDRAW iface, BOOL reenable)
return DD_FALSE; return DD_FALSE;
} }
/* try get the memory and show it */
if (ddgbl.lpDDCBtmp->HALDDMiscellaneous.GetAvailDriverMemory)
{
DDHAL_GETAVAILDRIVERMEMORYDATA memdata;
char buffer[2048];
ZeroMemory(&memdata, sizeof(DDHAL_GETAVAILDRIVERMEMORYDATA));
DX_STUB_str("found GetAvailDriverMemory, testing \n");
memdata.lpDD = &ddgbl;
memdata.ddRVal = DDERR_GENERIC;
ddgbl.lpDDCBtmp->HALDDMiscellaneous.GetAvailDriverMemory(&memdata);
sprintf ( buffer, "GetAvailDriverMemory : retval %ld, Graphice memory free %ld Bytes, memory total %ld Bytes\n",memdata.ddRVal,memdata.dwFree,memdata.dwTotal);
OutputDebugStringA(buffer);
}
DX_STUB_str("Return DD_OK\n");
return DD_OK; return DD_OK;
} }