Simple Directmedia Layer
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix testautomation pixels_saveLoadBMP big endian issue

It seems created surfaces are ARGB8888 format on both BE and LE,
therefore BGRA32 failed.

authored by

capehill and committed by
Sam Lantinga
80c1b1e1 478ac0b9

+2 -2
+2 -2
test/testautomation_pixels.c
··· 1009 1009 if (surface) { 1010 1010 Uint8 *pixels = (Uint8 *)surface->pixels; 1011 1011 if (SDL_ISPIXELFORMAT_ALPHA(format)) { 1012 - SDLTest_AssertCheck(surface->format == SDL_PIXELFORMAT_BGRA32, "Verify BMP surface format, expected %s, got %s", SDL_GetPixelFormatName(SDL_PIXELFORMAT_BGRA32), SDL_GetPixelFormatName(surface->format)); 1012 + SDLTest_AssertCheck(surface->format == SDL_PIXELFORMAT_ARGB8888, "Verify BMP surface format, expected %s, got %s", SDL_GetPixelFormatName(SDL_PIXELFORMAT_ARGB8888), SDL_GetPixelFormatName(surface->format)); 1013 1013 SDLTest_AssertCheck(pixels[0] == 255 && 1014 1014 pixels[1] == 255 && 1015 1015 pixels[2] == 255 && ··· 1057 1057 if (surface) { 1058 1058 Uint8 *pixels = (Uint8 *)surface->pixels; 1059 1059 if (SDL_ISPIXELFORMAT_ALPHA(format)) { 1060 - SDLTest_AssertCheck(surface->format == SDL_PIXELFORMAT_BGRA32, "Verify BMP surface format, expected %s, got %s", SDL_GetPixelFormatName(SDL_PIXELFORMAT_BGRA32), SDL_GetPixelFormatName(surface->format)); 1060 + SDLTest_AssertCheck(surface->format == SDL_PIXELFORMAT_ARGB8888, "Verify BMP surface format, expected %s, got %s", SDL_GetPixelFormatName(SDL_PIXELFORMAT_ARGB8888), SDL_GetPixelFormatName(surface->format)); 1061 1061 SDLTest_AssertCheck(pixels[0] == 255 && 1062 1062 pixels[1] == 255 && 1063 1063 pixels[2] == 255 &&