From: Holger Schemel Date: Thu, 13 Oct 2022 18:35:38 +0000 (+0200) Subject: changed using same (little endian) pixel format everywhere X-Git-Tag: 4.3.3.0~58 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=51370f0989549a08361b8f2939dbfec9b625b6a9 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). --- 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;