The Gimp puts out a different bogus color mask for 32-bit .bmp files. :)
authorRyan C. Gordon <icculus@icculus.org>
Wed, 09 Jul 2014 00:09:57 -0400
changeset 9001c750aab87e82
parent 9000 670efcbd447d
child 9002 c1bd00f50724
The Gimp puts out a different bogus color mask for 32-bit .bmp files. :)
src/video/SDL_bmp.c
     1.1 --- a/src/video/SDL_bmp.c	Wed Jul 09 00:01:34 2014 -0400
     1.2 +++ b/src/video/SDL_bmp.c	Wed Jul 09 00:09:57 2014 -0400
     1.3 @@ -254,6 +254,13 @@
     1.4                  Rmask = 0x00FF0000;
     1.5                  Gmask = 0x0000FF00;
     1.6                  Bmask = 0x000000FF;
     1.7 +            } else if ((Rmask == 0xFFFFFF00) && (Gmask == 0xFFFFFF00) &&
     1.8 +                       (Bmask == 0xFFFFFF00) && (Amask == 0xFFFFFF00) ) {
     1.9 +                /* argh, The Gimp seems to put out different bogus masks! */
    1.10 +                Amask = 0x000000FF;
    1.11 +                Rmask = 0xFF000000;
    1.12 +                Gmask = 0x00FF0000;
    1.13 +                Bmask = 0x0000FF00;
    1.14              }
    1.15  
    1.16              break;