- added caching for true color images as well

This commit is contained in:
Christoph Oelckers 2018-12-10 02:35:10 +01:00
commit 4cd60fbe99
13 changed files with 161 additions and 83 deletions

View file

@ -73,9 +73,9 @@ FImageTexture::FImageTexture(FImageSource *img, const char *name)
//
//===========================================================================
int FImageTexture::CopyPixels(FBitmap *bmp)
FBitmap FImageTexture::GetBgraBitmap(PalEntry *p, int *trans)
{
return mImage->CopyPixels(bmp, bNoRemap0? FImageSource::noremap0 : FImageSource::normal);
return mImage->GetCachedBitmap(p, bNoRemap0? FImageSource::noremap0 : FImageSource::normal, trans);
}
//===========================================================================