mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed palette initialization for single lump fonts (FON2 and BMF)
The bad increment was due to the palette being a byte array in older versions.
This commit is contained in:
parent
a8ea5bef00
commit
60bf096912
1 changed files with 1 additions and 1 deletions
|
@ -527,7 +527,7 @@ void FSingleLumpFont::FixupPalette (uint8_t *identity, const PalEntry *palette,
|
||||||
double minlum = 100000000.0;
|
double minlum = 100000000.0;
|
||||||
|
|
||||||
identity[0] = 0;
|
identity[0] = 0;
|
||||||
palette += 3; // Skip the transparent color
|
palette++; // Skip the transparent color
|
||||||
|
|
||||||
for (int i = 1; i < ActiveColors; ++i, palette ++)
|
for (int i = 1; i < ActiveColors; ++i, palette ++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue