From 44c2f344d623b65fff1d5dfe9196fae801e82ba2 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 30 Dec 2023 11:47:56 -0800 Subject: [PATCH] Fixed build --- src/video/android/SDL_android_video_capture.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/android/SDL_android_video_capture.c b/src/video/android/SDL_android_video_capture.c index 3e8e433bb3bde..c673fc83f7a64 100644 --- a/src/video/android/SDL_android_video_capture.c +++ b/src/video/android/SDL_android_video_capture.c @@ -119,7 +119,7 @@ format_2_id(int fmt) { #define CASE(x, y) case x: return y CASE(FORMAT_SDL, 0); CASE(SDL_PIXELFORMAT_RGB565, 1); - CASE(SDL_PIXELFORMAT_RGB888, 2); + CASE(SDL_PIXELFORMAT_XRGB8888, 2); CASE(SDL_PIXELFORMAT_RGBA8888, 3); CASE(SDL_PIXELFORMAT_RGBX8888, 4); CASE(SDL_PIXELFORMAT_UNKNOWN, 5); @@ -135,7 +135,7 @@ id_2_format(int fmt) { #define CASE(x, y) case y: return x CASE(FORMAT_SDL, 0); CASE(SDL_PIXELFORMAT_RGB565, 1); - CASE(SDL_PIXELFORMAT_RGB888, 2); + CASE(SDL_PIXELFORMAT_XRGB8888, 2); CASE(SDL_PIXELFORMAT_RGBA8888, 3); CASE(SDL_PIXELFORMAT_RGBX8888, 4); CASE(SDL_PIXELFORMAT_UNKNOWN, 5); @@ -152,7 +152,7 @@ format_android_2_sdl(Uint32 fmt) #define CASE(x, y) case x: return y CASE(AIMAGE_FORMAT_YUV_420_888, FORMAT_SDL); CASE(AIMAGE_FORMAT_RGB_565, SDL_PIXELFORMAT_RGB565); - CASE(AIMAGE_FORMAT_RGB_888, SDL_PIXELFORMAT_RGB888); + CASE(AIMAGE_FORMAT_RGB_888, SDL_PIXELFORMAT_XRGB8888); CASE(AIMAGE_FORMAT_RGBA_8888, SDL_PIXELFORMAT_RGBA8888); CASE(AIMAGE_FORMAT_RGBX_8888, SDL_PIXELFORMAT_RGBX8888); @@ -173,7 +173,7 @@ format_sdl_2_android(Uint32 fmt) #define CASE(x, y) case y: return x CASE(AIMAGE_FORMAT_YUV_420_888, FORMAT_SDL); CASE(AIMAGE_FORMAT_RGB_565, SDL_PIXELFORMAT_RGB565); - CASE(AIMAGE_FORMAT_RGB_888, SDL_PIXELFORMAT_RGB888); + CASE(AIMAGE_FORMAT_RGB_888, SDL_PIXELFORMAT_XRGB8888); CASE(AIMAGE_FORMAT_RGBA_8888, SDL_PIXELFORMAT_RGBA8888); CASE(AIMAGE_FORMAT_RGBX_8888, SDL_PIXELFORMAT_RGBX8888); #undef CASE