Skip to content

Commit

Permalink
- fixed uninitialized alpha channel in palette for savegame images.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 11, 2019
1 parent 5e4de10 commit 6cce1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gamedata/textures/formats/pngtexture.cpp
Expand Up @@ -657,6 +657,7 @@ FBitmap FPNGFileTexture::GetBgraBitmap(PalEntry *remap, int *trans)
pe[i].r = lump->ReadUInt8();
pe[i].g = lump->ReadUInt8();
pe[i].b = lump->ReadUInt8();
pe[i].a = 255;
}
}
lump->Seek(4, FileReader::SeekCur); // Skip CRC
Expand Down

0 comments on commit 6cce1f1

Please sign in to comment.