Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate an SDL2 symbol to the SDL3 one #451

Merged
merged 3 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading