mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
The Gimp puts out a different bogus color mask for 32-bit .bmp files. :)
This commit is contained in:
parent
a91f1a1adc
commit
f7461cdc9a
@ -254,6 +254,13 @@ SDL_LoadBMP_RW(SDL_RWops * src, int freesrc)
|
|||||||
Rmask = 0x00FF0000;
|
Rmask = 0x00FF0000;
|
||||||
Gmask = 0x0000FF00;
|
Gmask = 0x0000FF00;
|
||||||
Bmask = 0x000000FF;
|
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;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user