Permalink
Browse files

Use colorkey for 24bit BMP resources

  * needed to correctly display PCs/NPCs in PST's journal
  • Loading branch information...
1 parent 8971b43 commit fbc49c3799961c1775ed84d8f692d4c023663b79 @edheldil edheldil committed Jan 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 );

0 comments on commit fbc49c3

Please sign in to comment.