- 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:
parent
f70d0a6ced
commit
0ebe98d1e0
6 changed files with 47 additions and 13 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue