- abstract the external translation interface.
The translation table array now only gets accessed from within r_translate.cpp.
This commit is contained in:
parent
d00ad60437
commit
0a7344e432
11 changed files with 158 additions and 122 deletions
|
|
@ -129,8 +129,13 @@ void V_DrawPaletteTester(int paletteno)
|
|||
{
|
||||
for (int j = 0; j < 16; ++j)
|
||||
{
|
||||
int palindex = (t > 1) ? translationtables[TRANSLATION_Standard][t - 2]->Remap[k] : k;
|
||||
PalEntry pe = GPalette.BaseColors[palindex];
|
||||
PalEntry pe;
|
||||
if (t > 1)
|
||||
{
|
||||
auto palette = GetTranslation(TRANSLATION_Standard, t - 2)->Palette;
|
||||
pe = palette[k];
|
||||
}
|
||||
else GPalette.BaseColors[k];
|
||||
k++;
|
||||
screen->Dim(pe, 1.f, j*blocksize, i*blocksize, blocksize, blocksize);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue