From 388c6249b4ba208aaafde70dfe7de28909d0c024 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 6f42eee418b..ccf13d0daad 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