rem: image->dirty || !image->ScaledImg)
add: image->dirty || !image->ScaledImg || type != image->last_scale_type)
context: TFB_DrawImage_FixScaling (TFB_Image *image, int target){	EXTENT old = image->extent;	TFB_DrawCanvas_GetScaledExtent (image->NormalImg, target, &image->extent);		if ((old.width != image->extent.width) || (old.height != image->extent.height) ||		image->dirty || !image->ScaledImg)	{		image->dirty = FALSE;		if (!image->ScaledImg)			image->ScaledImg = TFB_DrawCanvas_New_ScaleTarget (image->NormalImg);		TFB_DrawCanvas_Rescale (image->NormalImg, image->ScaledImg, image->extent);	}	/*	if (TFB_DrawCanvas_IsPaletted (image->ScaledImg))	{		int colorkey = TFB_DrawCanvas_GetTransparentIndex (image->NormalImg);				TFB_DrawCanvas_SetPalette (image->ScaledImg, image->Palette);		if (colorkey != -1)		{			TFB_DrawCanvas_SetTransparentIndex (image->ScaledImg, colorkey);		}	}	*/}