From fbc49c3799961c1775ed84d8f692d4c023663b79 Mon Sep 17 00:00:00 2001 From: Edheldil Date: Sat, 18 Jan 2014 22:08:36 +0100 Subject: [PATCH] Use colorkey for 24bit BMP resources * needed to correctly display PCs/NPCs in PST's journal --- gemrb/plugins/BMPImporter/BMPImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemrb/plugins/BMPImporter/BMPImporter.cpp b/gemrb/plugins/BMPImporter/BMPImporter.cpp index 4d039f60be..97c625e804 100644 --- a/gemrb/plugins/BMPImporter/BMPImporter.cpp +++ b/gemrb/plugins/BMPImporter/BMPImporter.cpp @@ -230,7 +230,7 @@ Sprite2D* BMPImporter::GetSprite2D() memcpy( p, pixels, Width * Height * 4 ); spr = core->GetVideoDriver()->CreateSprite( Width, Height, 32, red_mask, green_mask, blue_mask, 0x00000000, p, - true, green_mask ); + true, green_mask|(0xff<<24) ); } else if (BitCount == 8) { void* p = malloc( Width* Height ); memcpy( p, pixels, Width * Height );