From 6cce1f1e52e5d2f6414f8de5ea80f6454a0914ec Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 11 Aug 2019 21:25:35 +0200 Subject: [PATCH] - fixed uninitialized alpha channel in palette for savegame images. --- src/gamedata/textures/formats/pngtexture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gamedata/textures/formats/pngtexture.cpp b/src/gamedata/textures/formats/pngtexture.cpp index 6f42eee418..ccf13d0daa 100644 --- a/src/gamedata/textures/formats/pngtexture.cpp +++ b/src/gamedata/textures/formats/pngtexture.cpp @@ -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