- allow external replacements of SW's 3D Realms logo to use their own palette.

This was already present for Duke, but not here.
This commit is contained in:
Christoph Oelckers 2021-07-05 22:43:23 +02:00
parent e5cb1976d3
commit 6062af562d
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class SWDRealmsScreen : SkippableScreenJob
override void Draw(double sm)
{
let tex = TexMan.CheckForTexture("THREED_REALMS_PIC", TexMan.Type_Any);
int translation = Translation.MakeID(Translation_BasePalette, DREALMSPAL);
int translation = TexMan.UseGamePalette(tex) ? Translation.MakeID(Translation_BasePalette, DREALMSPAL) : 0;
Screen.DrawTexture(tex, false, 0, 0, DTA_FullscreenEx, FSMode_ScaleToFit43, DTA_TranslationIndex, translation, DTA_LegacyRenderStyle, STYLE_Normal);
}
}