rem: if (!_varPLUTs) { if (!(_varPLUTs = (unsigned int*) HMalloc (bytes))) return TRUE;
add: if (!_varPLUTs) { if (!(_varPLUTs = (DWORD *) HMalloc (bytes))) return TRUE;
context: SetColorMap (COLORMAPPTR map, int type){    int start, end, bytes;	UBYTE *colors = (UBYTE*)map;	UBYTE *vp;		if (!map)		return TRUE;    start = *colors++;    end = *colors++;    if (start > end)		return TRUE;	    bytes = (end - start + 1) * PLUT_BYTE_SIZE;    if (!_varPLUTs)    {		if (!(_varPLUTs = (unsigned int*) HMalloc (bytes)))		    return TRUE;		varPLUTsize = bytes;    }	    vp = (UBYTE*)_varPLUTs + (start * PLUT_BYTE_SIZE);    	memcpy (vp, colors, bytes);	cmap_type = type;	TFB_ColorMapToRGB (vp);	has_colormap = TRUE;	//printf("SetColorMap(): vp %x map %x bytes %d, start %d end %d\n",vp, map, bytes, start, end);	return TRUE;}