mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- Fixed: restart ccmd did not reset the palette.
SVN r3307 (trunk)
This commit is contained in:
parent
3401d9f2bb
commit
c23b918596
1 changed files with 8 additions and 1 deletions
|
@ -1539,7 +1539,14 @@ void V_Init (bool restart)
|
||||||
}
|
}
|
||||||
screen = new DDummyFrameBuffer (width, height);
|
screen = new DDummyFrameBuffer (width, height);
|
||||||
}
|
}
|
||||||
|
// Update screen palette when restarting
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PalEntry *palette = screen->GetPalette ();
|
||||||
|
for (int i = 0; i < 256; ++i)
|
||||||
|
*palette++ = GPalette.BaseColors[i];
|
||||||
|
screen->UpdatePalette();
|
||||||
|
}
|
||||||
|
|
||||||
BuildTransTable (GPalette.BaseColors);
|
BuildTransTable (GPalette.BaseColors);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue