sources/SpriteWorld.c
void SWRemoveUpdateRectStruct(
	UpdateRectStructPtr *headRectPP,
	UpdateRectStructPtr	removeRect)
{
	UpdateRectStructPtr		curRectStructP;

	if (removeRect == *headRectPP )
	{
		*headRectPP = removeRect->nextRectStructP;
	}
	else
	{
		curRectStructP = *headRectPP;
		while (curRectStructP)
		{
			if (curRectStructP->nextRectStructP == removeRect)
			{
				curRectStructP->nextRectStructP = removeRect->nextRectStructP;
				break;
			}
			curRectStructP = curRectStructP->nextRectStructP;
		}
	}

	free(removeRect);
}
///--------------------------------------------------------------------------------------
//	SWRemoveUpdateRectStruct - takes out a specific updaterectstruct 
//								(used by SWMergeUpdateRect)
///--------------------------------------------------------------------------------------
takes out a specific updaterectstruct
(used by SWMergeUpdateRect)
takes out a specific updaterectstruct ( used by SWMergeUpdateRect )
void SWRemoveUpdateRectStruct(
	UpdateRectStructPtr *headRectPP,
	UpdateRectStructPtr	removeRect)
{
	UpdateRectStructPtr		curRectStructP;
	if (removeRect == *headRectPP )
	{
		*headRectPP = removeRect->nextRectStructP;
	}
	else
	{
		curRectStructP = *headRectPP;
		while (curRectStructP)
		{
			if (curRectStructP->nextRectStructP == removeRect)
			{
				curRectStructP->nextRectStructP = removeRect->nextRectStructP;
				break;
			}
			curRectStructP = curRectStructP->nextRectStructP;
		}
	}
	free(removeRect);
}
void SWRemoveUpdateRectStruct ( UpdateRectStructPtr * headRectPP , UpdateRectStructPtr removeRect ) { UpdateRectStructPtr curRectStructP ; if ( removeRect == * headRectPP ) { * headRectPP = removeRect -> nextRectStructP ; } else { curRectStructP = * headRectPP ; while ( curRectStructP ) { if ( curRectStructP -> nextRectStructP == removeRect ) { curRectStructP -> nextRectStructP = removeRect -> nextRectStructP ; break ; } curRectStructP = curRectStructP -> nextRectStructP ; } } free ( removeRect ) ; }
SWRemoveUpdateRectStruct - takes out a specific updaterectstruct
(used by SWMergeUpdateRect)
SWRemoveUpdateRectStruct - takes out a specific updaterectstruct ( used by SWMergeUpdateRect )