# SDL: test: Make blit\_testExampleApplicationRender work on big endian

**URL:** <https://discourse.libsdl.org/t/sdl-test-make-blit-testexampleapplicationrender-work-on-big-endian/54768>\
**Category:** SDL Commits\
**Created:** [October 6, 2024, 3:28pm UTC](https://discourse.libsdl.org/t/sdl-test-make-blit-testexampleapplicationrender-work-on-big-endian/54768 "2024-10-06T15:28:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [October 6, 2024, 3:28pm UTC](https://discourse.libsdl.org/t/sdl-test-make-blit-testexampleapplicationrender-work-on-big-endian/54768/1 "2024-10-06T15:28:00Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/e159bcf5ded370b78078e6ef66832fbb55e674f4>
>
> Changed image data pixel format to BGRA32.

```diff
From e159bcf5ded370b78078e6ef66832fbb55e674f4 Mon Sep 17 00:00:00 2001
From: capehill <[EMAIL REDACTED]>
Date: Sun, 6 Oct 2024 11:02:50 +0300
Subject: [PATCH] test: Make blit_testExampleApplicationRender work on big
 endian

Changed image data pixel format to BGRA32.
---
 test/testautomation_images.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/testautomation_images.c b/test/testautomation_images.c
index 711dd8b4339ec..f81dde6c37e85 100644
--- a/test/testautomation_images.c
+++ b/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;

```
