rem: CreateThread (xform_PLUT_task, NULL, 1024,
add: AssignTask (xform_PLUT_task, 1024,
context: XFormPLUT (COLORMAPPTR ColorMapPtr, SIZE TimeInterval){	if (ColorMapPtr)	{		DWORD TimeOut;		TimeInterval = 0; // added by Mika		FlushPLUTXForms ();		TaskControl.CMapPtr = ColorMapPtr;		if ((TaskControl.Ticks = TimeInterval) <= 0)			TaskControl.Ticks = 1; /* prevent divide by zero and negative fade */		if (TimeInterval == 0 || (TaskControl.XFormTask =				CreateThread (xform_PLUT_task, NULL, 1024,				"transform palette")) == 0)		{			SetColorMap (ColorMapPtr, TFB_COLORMAP_COMM);			ColorChange = TRUE;			TimeOut = GetTimeCounter ();		}		else		{			do				TaskSwitch ();			while (TaskControl.CMapPtr);			++NumXFormTasks;			TimeOut = GetTimeCounter () + TaskControl.Ticks + 1;		}		TaskControl.CMapPtr = 0;		return (TimeOut);	}	return (0);}