From 8a5c7e6df36ce71fa0caa503f39d0ce298a02e07 Mon Sep 17 00:00:00 2001 From: Cyao <94928179+cheyao@users.noreply.github.com> Date: Wed, 29 May 2024 14:20:20 +0200 Subject: [PATCH 1/3] Change renamed symbol --- src/IMG_tga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IMG_tga.c b/src/IMG_tga.c index 0b136d44..9950e2e5 100644 --- a/src/IMG_tga.c +++ b/src/IMG_tga.c @@ -156,7 +156,7 @@ SDL_Surface *IMG_LoadTGA_IO(SDL_IOStream *src) case 16: /* 15 and 16bpp both seem to use 5 bits/plane. The extra alpha bit is ignored for now. */ - format = SDL_PIXELFORMAT_RGB555; + format = SDL_PIXELFORMAT_XRGB1555; break; case 32: From 703c8ed3af2d049109e3cddd02f1a11900248832 Mon Sep 17 00:00:00 2001 From: cheyao <94928179+cheyao@users.noreply.github.com> Date: Wed, 29 May 2024 15:46:11 +0200 Subject: [PATCH 2/3] Renamed more deciprated symbols --- src/IMG_png.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IMG_png.c b/src/IMG_png.c index a9ff5441..6e377411 100644 --- a/src/IMG_png.c +++ b/src/IMG_png.c @@ -371,13 +371,13 @@ static void LIBPNG_LoadPNG_IO(SDL_IOStream *src, struct loadpng_vars *vars) format = SDL_PIXELFORMAT_INDEX8; break; case 12: - format = SDL_PIXELFORMAT_RGB444; + format = SDL_PIXELFORMAT_XRGB4444; break; case 15: - format = SDL_PIXELFORMAT_RGB555; + format = SDL_PIXELFORMAT_XRGB1555; break; case 16: - format = SDL_PIXELFORMAT_RGB565; + format = SDL_PIXELFORMAT_XRGB8888; break; default: From 668af54569b2e4de1097283e1102535229a00ea2 Mon Sep 17 00:00:00 2001 From: cheyao <94928179+cheyao@users.noreply.github.com> Date: Wed, 29 May 2024 15:49:16 +0200 Subject: [PATCH 3/3] Oppsie, wrong name --- src/IMG_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IMG_png.c b/src/IMG_png.c index 6e377411..7db2d5b2 100644 --- a/src/IMG_png.c +++ b/src/IMG_png.c @@ -377,7 +377,7 @@ static void LIBPNG_LoadPNG_IO(SDL_IOStream *src, struct loadpng_vars *vars) format = SDL_PIXELFORMAT_XRGB1555; break; case 16: - format = SDL_PIXELFORMAT_XRGB8888; + format = SDL_PIXELFORMAT_RGB565; break; default: