mirror of https://github.com/encounter/SDL.git
Android: understand HAL_PIXEL_FORMAT_BGR_565 as a returned value from ANativeWindow_getFormat() (see #6016)
This commit is contained in:
parent
1b4e08b89e
commit
03485db0a3
|
@ -249,6 +249,9 @@ Uint32 format_to_pixelFormat(int format) {
|
||||||
pf = SDL_PIXELFORMAT_RGBA5551;
|
pf = SDL_PIXELFORMAT_RGBA5551;
|
||||||
} else if (format == 7) {
|
} else if (format == 7) {
|
||||||
pf = SDL_PIXELFORMAT_RGBA4444;
|
pf = SDL_PIXELFORMAT_RGBA4444;
|
||||||
|
} else if (format == 0x115) {
|
||||||
|
/* HAL_PIXEL_FORMAT_BGR_565 */
|
||||||
|
pf = SDL_PIXELFORMAT_RGB565;
|
||||||
} else {
|
} else {
|
||||||
pf = SDL_PIXELFORMAT_UNKNOWN;
|
pf = SDL_PIXELFORMAT_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue