Skip to content

Commit

Permalink
The Gimp puts out a different bogus color mask for 32-bit .bmp files. :)
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 9, 2014
1 parent a91f1a1 commit f7461cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/video/SDL_bmp.c
Expand Up @@ -254,6 +254,13 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
Rmask = 0x00FF0000;
Gmask = 0x0000FF00;
Bmask = 0x000000FF;
} else if ((Rmask == 0xFFFFFF00) && (Gmask == 0xFFFFFF00) &&
(Bmask == 0xFFFFFF00) && (Amask == 0xFFFFFF00) ) {
/* argh, The Gimp seems to put out different bogus masks! */
Amask = 0x000000FF;
Rmask = 0xFF000000;
Gmask = 0x00FF0000;
Bmask = 0x0000FF00;
}

break;
Expand Down

0 comments on commit f7461cd

Please sign in to comment.