From 6ac0b23d3a7709c301f527b2dcd8a30f83765608 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 18 Dec 2020 21:37:20 +0300 Subject: [PATCH] SDL_DirectFB_video.c: DSPF_ABGR requires directfb >= 1.5.0 -- add guard. --- src/video/directfb/SDL_DirectFB_video.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/directfb/SDL_DirectFB_video.c b/src/video/directfb/SDL_DirectFB_video.c index bf52d98c4..5ea61a102 100644 --- a/src/video/directfb/SDL_DirectFB_video.c +++ b/src/video/directfb/SDL_DirectFB_video.c @@ -322,7 +322,9 @@ static const struct { { DSPF_YUY2, SDL_PIXELFORMAT_YUY2 }, /* 16 bit YUV (4 byte/ 2 pixel, macropixel contains CbYCrY [31:0]) */ { DSPF_UYVY, SDL_PIXELFORMAT_UYVY }, /* 16 bit YUV (4 byte/ 2 pixel, macropixel contains YCbYCr [31:0]) */ { DSPF_RGB555, SDL_PIXELFORMAT_RGB555 }, /* 16 bit RGB (2 byte, nothing @15, red 5@10, green 5@5, blue 5@0) */ +#if (DFB_VERSION_ATLEAST(1,5,0)) { DSPF_ABGR, SDL_PIXELFORMAT_ABGR8888 }, /* 32 bit ABGR (4 byte, alpha 8@24, blue 8@16, green 8@8, red 8@0) */ +#endif #if (ENABLE_LUT8) { DSPF_LUT8, SDL_PIXELFORMAT_INDEX8 }, /* 8 bit LUT (8 bit color and alpha lookup from palette) */ #endif