mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 10:11:04 +00:00
Fix in-game 2d map view line colors when using palettes that differ completely from Duke3D's palette
git-svn-id: https://svn.eduke32.com/eduke32@6461 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
938d444b35
commit
ff8d608caf
2 changed files with 12 additions and 6 deletions
|
@ -294,6 +294,12 @@ void E_PostLoadPalette(void)
|
|||
|
||||
redcol = getclosestcol(255, 0, 0);
|
||||
|
||||
for (size_t i = 0; i<16; i++)
|
||||
{
|
||||
palette_t *edcol = (palette_t *) &vgapal16[4*i];
|
||||
editorcolors[i] = getclosestcol_lim(edcol->b, edcol->g, edcol->r, 239);
|
||||
}
|
||||
|
||||
// Bmemset(PaletteIndexFullbrights, 0, sizeof(PaletteIndexFullbrights));
|
||||
for (bssize_t c = 0; c < 255; ++c) // skipping transparent color
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue