From 51370f0989549a08361b8f2939dbfec9b625b6a9 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 13 Oct 2022 20:35:38 +0200 Subject: [PATCH] changed using same (little endian) pixel format everywhere This change also has the effect that the code compiles using versions of the SDL library older than 2.0.5 (which introduced the pixel format alias name used before). --- src/files.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/files.c b/src/files.c index cdb890b9..5e95fb80 100644 --- a/src/files.c +++ b/src/files.c @@ -13489,7 +13489,7 @@ void CreateCollectElementImages(void) SDL_MapRGB(dst_bitmap->surface->format, 0x00, 0x00, 0x00)); dst_bitmap->surface = - SDL_ConvertSurfaceFormat(dst_bitmap->surface, SDL_PIXELFORMAT_RGBA32, 0); + SDL_ConvertSurfaceFormat(dst_bitmap->surface, SDL_PIXELFORMAT_ARGB8888, 0); for (i = 0; i < MAX_NUM_ELEMENTS; i++) { @@ -13516,7 +13516,7 @@ void CreateCollectElementImages(void) SDL_MapRGB(tmp_bitmap->surface->format, 0x00, 0x00, 0x00)); tmp_bitmap->surface = - SDL_ConvertSurfaceFormat(tmp_bitmap->surface, SDL_PIXELFORMAT_RGBA32, 0); + SDL_ConvertSurfaceFormat(tmp_bitmap->surface, SDL_PIXELFORMAT_ARGB8888, 0); tmp_bitmap->surface_masked = tmp_bitmap->surface; -- 2.34.1