소스 검색

test: Make blit_testExampleApplicationRender work on big endian

Changed image data pixel format to BGRA32.
capehill 6 달 전
부모
커밋
e159bcf5de
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      test/testautomation_images.c

+ 2 - 2
test/testautomation_images.c

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