Skip to content

Commit

Permalink
Migrate an SDL2 symbol to the SDL3 one (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheyao authored May 29, 2024
1 parent 2fc5310 commit 7c50e4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/IMG_png.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/IMG_tga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7c50e4f

Please sign in to comment.