- added support for reading JASC palette files. I hope it's correct, considering I have no such files to test. The format should be simple enough, though.

This commit is contained in:
Christoph Oelckers 2017-03-14 12:16:42 +01:00
commit 0ebe98d1e0
6 changed files with 47 additions and 13 deletions

View file

@ -124,12 +124,13 @@ void DIntermissionScreen::Init(FIntermissionAction *desc, bool first)
if (desc->mPalette.IsNotEmpty() && (lumpnum = Wads.CheckNumForFullName(desc->mPalette, true)) > 0)
{
PalEntry *palette;
uint8_t palbuffer[768];
const uint8_t *orgpal;
FMemLump lump;
int i;
lump = Wads.ReadLump (lumpnum);
orgpal = (uint8_t *)lump.GetMem();
ReadPalette(lumpnum, palbuffer);
orgpal = (uint8_t *)palbuffer;
palette = screen->GetPalette ();
for (i = 256; i > 0; i--, orgpal += 3)
{