Skip to content

Commit

Permalink
- fixed palette initialization for single lump fonts (FON2 and BMF)
Browse files Browse the repository at this point in the history
The bad increment was due to the palette being a byte array in older versions.
  • Loading branch information
coelckers committed Oct 6, 2021
1 parent a8ea5be commit 60bf096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/fonts/singlelumpfont.cpp
Expand Up @@ -527,7 +527,7 @@ void FSingleLumpFont::FixupPalette (uint8_t *identity, const PalEntry *palette,
double minlum = 100000000.0;

identity[0] = 0;
palette += 3; // Skip the transparent color
palette++; // Skip the transparent color

for (int i = 1; i < ActiveColors; ++i, palette ++)
{
Expand Down

0 comments on commit 60bf096

Please sign in to comment.