Skip to content

Commit

Permalink
Re-add 24 bit case missed in translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Starbuck5 committed Oct 31, 2024
1 parent de257d7 commit 9acf2ef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src_c/surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,6 +1626,11 @@ pg_DisplayFormatAlpha(SDL_Surface *surface)

case SDL_PIXELFORMAT_BGRX8888:
case SDL_PIXELFORMAT_BGRA8888:
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
case SDL_PIXELFORMAT_BGR24:
#else
case SDL_PIXELFORMAT_RGB24:
#endif
pfe = SDL_PIXELFORMAT_BGRA8888;
break;

Expand Down

0 comments on commit 9acf2ef

Please sign in to comment.