rem: if ( TimeInterval == 0 || ( TaskControl.XFormTask = AddTask ( xform_PLUT_task, 1024 ) ) == 0 )
add: if (TimeInterval == 0 || (TaskControl.XFormTask = CreateThread (xform_PLUT_task, NULL, 1024, "transform palette")) == 0)
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 = AddTask						(								xform_PLUT_task, 1024						)				) == 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);}