From 7c50e4fa53c59cf8937ef83c95a5adb388a7d6b2 Mon Sep 17 00:00:00 2001 From: Cyao <94928179+cheyao@users.noreply.github.com> Date: Wed, 29 May 2024 18:59:06 +0200 Subject: [PATCH] Migrate an SDL2 symbol to the SDL3 one (#451) --- src/IMG_png.c | 4 ++-- src/IMG_tga.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IMG_png.c b/src/IMG_png.c index a9ff5441..7db2d5b2 100644 --- a/src/IMG_png.c +++ b/src/IMG_png.c @@ -371,10 +371,10 @@ 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; 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: