This commit is contained in:
parent
8b6fda6845
commit
f0a186816c
2 changed files with 18 additions and 15 deletions
|
@ -234,18 +234,17 @@ void dumpDebugMem()
|
||||||
setPolyF4( F4 );
|
setPolyF4( F4 );
|
||||||
setXYWH(F4,x,y,len,s_dumpHeight);
|
setXYWH(F4,x,y,len,s_dumpHeight);
|
||||||
setRGB0( F4, col->r, col->g, col->b );
|
setRGB0( F4, col->r, col->g, col->b );
|
||||||
AddPrimToList( F4, 0 );
|
if(i!=s_currentMemPart)
|
||||||
|
{
|
||||||
if (i == s_currentMemPart)
|
AddPrimToList( F4, 1 );
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
F4 = GetPrimF4();
|
|
||||||
setPolyF4( F4 );
|
|
||||||
setXYWH(F4,x,y+s_dumpHeight,len,2);
|
|
||||||
setRGB0( F4, 255,0,0 );
|
|
||||||
AddPrimToList( F4, 0 );
|
AddPrimToList( F4, 0 );
|
||||||
|
|
||||||
F4 = GetPrimF4();
|
F4 = GetPrimF4();
|
||||||
setPolyF4( F4 );
|
setPolyF4( F4 );
|
||||||
setXYWH(F4,x-1,y+s_dumpHeight,len+2,2+1);
|
setXYWH(F4,x-1,y-1,len+2,s_dumpHeight+2);
|
||||||
setRGB0( F4, 0,0,0 );
|
setRGB0( F4, 0,0,0 );
|
||||||
AddPrimToList( F4, 0 );
|
AddPrimToList( F4, 0 );
|
||||||
}
|
}
|
||||||
|
@ -335,18 +334,20 @@ void addDebugMem( void * addr, const char * name, const char * file, int line )
|
||||||
id = MEM_SYSTEM;
|
id = MEM_SYSTEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MEM_PART *md=memDump;
|
||||||
for (int i=0;i<MAX_MEM_DUMP;i++)
|
for (int i=0;i<MAX_MEM_DUMP;i++)
|
||||||
{
|
{
|
||||||
if (!memDump[i].addr)
|
if (!md->addr)
|
||||||
{
|
{
|
||||||
memDump[i].addr = addr;
|
md->addr = addr;
|
||||||
memDump[i].id = MEM_ID( id );
|
md->id = MEM_ID( id );
|
||||||
memDump[i].name = name;
|
md->name = name;
|
||||||
memDump[i].file = file;
|
md->file = file;
|
||||||
memDump[i].line = line;
|
md->line = line;
|
||||||
memDump[i].frameTime = VidGetTickCount();
|
md->frameTime = VidGetTickCount();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
md++;
|
||||||
}
|
}
|
||||||
ASSERT( !"Out of debug mem slots" );
|
ASSERT( !"Out of debug mem slots" );
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef __VERSION_DEBUG__
|
||||||
#define __DEBUG_MEM__ // Define if you want to debug memory - TS
|
#define __DEBUG_MEM__ // Define if you want to debug memory - TS
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue