test: Make blit_testExampleApplicationRender work on big endian

Changed image data pixel format to BGRA32.
This commit is contained in:
capehill 2024-10-06 11:02:50 +03:00 committed by Sam Lantinga
parent c9ffa3f9e1
commit e159bcf5de

View File

@ -2374,7 +2374,7 @@ SDL_Surface *SDLTest_ImageBlendingBackground(void)
SDL_Surface *surface = SDL_CreateSurfaceFrom( SDL_Surface *surface = SDL_CreateSurfaceFrom(
SDLTest_imageRainbowBackground.width, SDLTest_imageRainbowBackground.width,
SDLTest_imageRainbowBackground.height, SDLTest_imageRainbowBackground.height,
SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGRA32,
(void *)SDLTest_imageRainbowBackground.pixel_data, (void *)SDLTest_imageRainbowBackground.pixel_data,
SDLTest_imageRainbowBackground.width * SDLTest_imageRainbowBackground.bytes_per_pixel); SDLTest_imageRainbowBackground.width * SDLTest_imageRainbowBackground.bytes_per_pixel);
return surface; return surface;
@ -2548,7 +2548,7 @@ SDL_Surface *SDLTest_ImageBlendingSprite(void)
SDL_Surface *surface = SDL_CreateSurfaceFrom( SDL_Surface *surface = SDL_CreateSurfaceFrom(
SDLTest_imageTransparentSprite.width, SDLTest_imageTransparentSprite.width,
SDLTest_imageTransparentSprite.height, SDLTest_imageTransparentSprite.height,
SDL_PIXELFORMAT_ARGB8888, SDL_PIXELFORMAT_BGRA32,
(void *)SDLTest_imageTransparentSprite.pixel_data, (void *)SDLTest_imageTransparentSprite.pixel_data,
SDLTest_imageTransparentSprite.width * SDLTest_imageTransparentSprite.bytes_per_pixel); SDLTest_imageTransparentSprite.width * SDLTest_imageTransparentSprite.bytes_per_pixel);
return surface; return surface;