- abstract the external translation interface.

The translation table array now only gets accessed from within r_translate.cpp.
This commit is contained in:
Christoph Oelckers 2020-04-11 12:41:09 +02:00
commit 0a7344e432
11 changed files with 158 additions and 122 deletions

View file

@ -263,7 +263,7 @@ TArray<uint8_t> FPatchTexture::CreatePalettedPixels(int conversion)
int FPatchTexture::CopyPixels(FBitmap *bmp, int conversion)
{
if (!isalpha) return FImageSource::CopyPixels(bmp, conversion);
else return CopyTranslatedPixels(bmp, translationtables[TRANSLATION_Standard][STD_Grayscale]->Palette);
else return CopyTranslatedPixels(bmp, GetTranslation(TRANSLATION_Standard, STD_Grayscale)->Palette);
}
//==========================================================================