- added caching for true color images as well
This commit is contained in:
parent
2e7bcf9e41
commit
4cd60fbe99
13 changed files with 161 additions and 83 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue