Fixed decoding of Icons

The rgba mask for decoding icon surfaces was incorrect. Icons should
appear as expected now.
This commit is contained in:
Stefanos A. 2013-09-29 23:08:51 +02:00
parent 6245ffe3ef
commit 420ec232f3

View file

@ -419,7 +419,7 @@ namespace OpenTK.Platform.SDL2
surface = SDL.SDL_CreateRGBSurfaceFrom(
data.Scan0, data.Width, data.Height, 32, data.Width * 4,
0x0000ff00u, 0x00ff0000u, 0xff000000u, 0x000000ffu);
0x00ff0000u, 0x0000ff00u, 0x000000ffu, 0xff000000u);
bmp.UnlockBits(data);
}