Skip to content

Commit

Permalink
Android: understand HAL_PIXEL_FORMAT_BGR_565 as a returned value from…
Browse files Browse the repository at this point in the history
… ANativeWindow_getFormat() (see #6016)
  • Loading branch information
1bsyl committed Sep 3, 2022
1 parent 1b4e08b commit 03485db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/android/SDL_androidvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ Uint32 format_to_pixelFormat(int format) {
pf = SDL_PIXELFORMAT_RGBA5551;
} else if (format == 7) {
pf = SDL_PIXELFORMAT_RGBA4444;
} else if (format == 0x115) {
/* HAL_PIXEL_FORMAT_BGR_565 */
pf = SDL_PIXELFORMAT_RGB565;
} else {
pf = SDL_PIXELFORMAT_UNKNOWN;
}
Expand Down

0 comments on commit 03485db

Please sign in to comment.