rem: v1 = MAKE_DWORD ( MAKE_WORD (ColorMapPtr[3], ColorMapPtr[2]), MAKE_WORD (ColorMapPtr[1], ColorMapPtr[0]) );
add: v0 = UQM_SwapBE32 (*(DWORD *)oldmap); v1 = UQM_SwapBE32 (*(DWORD *)ColorMapPtr);
context: xform_PLUT_step (SIZE TDelta){	XFORM_CONTROL *control;	COLORMAPPTR ColorMapPtr;	DWORD *pCurCMap, *pOldCMap;	int i;	if (!XFormControl.XFormsPending)		return;	control = &XFormControl.TaskControl[XFormControl.XFormCurrent];	ColorMapPtr = control->CMapPtr;	if (TDelta > control->TTotal)		TDelta = control->TTotal;	pCurCMap = (DWORD *)((BYTE *)_varPLUTs + (*ColorMapPtr * PLUT_BYTE_SIZE));	pOldCMap = control->OldCMap;	ColorMapPtr += 2;	if (_varPLUTs)	{		for (i = 0; i < NUMBER_OF_PLUT_UINT32s; i++)		{			SIZE c0, c1;			DWORD v0, v1, val;			float f = (control->TOrig - control->TTotal) / (float)control->TOrig;			COLORMAPPTR oldmap = (COLORMAPPTR) pOldCMap;								v0 = MAKE_DWORD				(					MAKE_WORD (oldmap[3], oldmap[2]),					MAKE_WORD (oldmap[1], oldmap[0])				);			v1 = MAKE_DWORD				(					MAKE_WORD (ColorMapPtr[3], ColorMapPtr[2]),					MAKE_WORD (ColorMapPtr[1], ColorMapPtr[0])				);			ColorMapPtr += sizeof (DWORD);						c0 = (SIZE)((v0 >> (10 + 16)) & 0x1F);			c1 = (SIZE)((v1 >> (10 + 16)) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (c0 & 0x1F) | (1 << 5);			c0 = (SIZE)((v0 >> (5 + 16)) & 0x1F);			c1 = (SIZE)((v1 >> (5 + 16)) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (val << 5) | (c0 & 0x1F);			c0 = (SIZE)((v0 >> (0 + 16)) & 0x1F);			c1 = (SIZE)((v1 >> (0 + 16)) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (val << 5) | (c0 & 0x1F);			c0 = (SIZE)((v0 >> 10) & 0x1F);			c1 = (SIZE)((v1 >> 10) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (val << (5 + 1)) | (c0 & 0x1F) | (1 << 5);			c0 = (SIZE)((v0 >> 5) & 0x1F);			c1 = (SIZE)((v1 >> 5) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (val << 5) | (c0 & 0x1F);						c0 = (SIZE)((v0 >> 0) & 0x1F);			c1 = (SIZE)((v1 >> 0) & 0x1F);			c0 += (SIZE)((c1 - c0) * f);			val = (val << 5) | (c0 & 0x1F);			*pOldCMap++;			*pCurCMap++ = MAKE_DWORD 				(					MAKE_WORD ((val >> 24 ) & 0xff, (val >> 16) & 0xff),					MAKE_WORD ((val >> 8  ) & 0xff, (val >> 0 ) & 0xff)				);		}		ColorChange = TRUE;	}	control->TTotal -= TDelta;	if (!control->TTotal)	{		xform_complete ();	}}