mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Fix palette issues with cinema code
This commit is contained in:
parent
f04de71065
commit
6378082339
2 changed files with 7 additions and 0 deletions
|
@ -1781,6 +1781,10 @@ int LoadCinemaPalette(int nPal)
|
|||
}
|
||||
|
||||
kread(hFile, cinemapal, sizeof(cinemapal));
|
||||
|
||||
for (auto &c : cinemapal)
|
||||
c <<= 2;
|
||||
|
||||
kclose(hFile);
|
||||
|
||||
return nPal;
|
||||
|
|
|
@ -70,6 +70,9 @@ int ReadFrame(FILE *fp)
|
|||
fread(palette, sizeof(palette[0]), sizeof(palette) / sizeof(palette[0]), fp);
|
||||
fread(&var_1C, sizeof(var_1C), 1, fp);
|
||||
|
||||
for (auto &c : palette)
|
||||
c <<= 2;
|
||||
|
||||
paletteSetColorTable(ANIMPAL, palette);
|
||||
videoSetPalette(0, ANIMPAL, 2+8);
|
||||
|
||||
|
|
Loading…
Reference in a new issue