Skip to content

Commit

Permalink
Use colorkey for 24bit BMP resources
Browse files Browse the repository at this point in the history
  * needed to correctly display PCs/NPCs in PST's journal
  • Loading branch information
edheldil committed Jan 18, 2014
1 parent 8971b43 commit fbc49c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemrb/plugins/BMPImporter/BMPImporter.cpp
Expand Up @@ -230,7 +230,7 @@ Sprite2D* BMPImporter::GetSprite2D()
memcpy( p, pixels, Width * Height * 4 ); memcpy( p, pixels, Width * Height * 4 );
spr = core->GetVideoDriver()->CreateSprite( Width, Height, 32, spr = core->GetVideoDriver()->CreateSprite( Width, Height, 32,
red_mask, green_mask, blue_mask, 0x00000000, p, red_mask, green_mask, blue_mask, 0x00000000, p,
true, green_mask ); true, green_mask|(0xff<<24) );
} else if (BitCount == 8) { } else if (BitCount == 8) {
void* p = malloc( Width* Height ); void* p = malloc( Width* Height );
memcpy( p, pixels, Width * Height ); memcpy( p, pixels, Width * Height );
Expand Down

0 comments on commit fbc49c3

Please sign in to comment.