rem: end = FULL_INTENSITY;
add: end = FADE_FULL_INTENSITY;
context: XFormColorMap (COLORMAPPTR ColorMapPtr, SIZE TimeInterval){	BYTE what;	DWORD TimeOut;	//printf ("Partially implemented function activated: XFormColorMap()\n");	FlushColorXForms ();	if (ColorMapPtr == (COLORMAPPTR)0)		return (0);	what = *ColorMapPtr;	switch (what)	{	case FadeAllToBlack:	case FadeSomeToBlack:		end = NO_INTENSITY;		break;	case FadeAllToColor:	case FadeSomeToColor:		end = NORMAL_INTENSITY;		break;	case FadeAllToWhite:	case FadeSomeToWhite:		end = FULL_INTENSITY;		break;	default:		return (GetTimeCounter ());	}	//if (what == FadeAllToBlack || what == FadeAllToWhite || what == FadeAllToColor)	//_threedo_enable_fade ();	TaskControl.Ticks = TimeInterval;	if (TaskControl.Ticks <= 0 ||			(TaskControl.tc.XFormTask = AssignTask (xform_clut_task,					1024, "transform colormap")) == 0)	{		//_threedo_change_clut (end);		TimeOut = GetTimeCounter ();	}	else	{		do			TaskSwitch ();		while (TaskControl.tc.XFormTask);		TimeOut = GetTimeCounter () + TimeInterval + 1;	}	return (TimeOut);}