From d97c200c6e2bf69f32857937e1f278134b392e2a Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Fri, 20 May 2016 15:26:32 +0000 Subject: [PATCH] splash: Skip the RGB555 mode Current JPEG decoding uses the RGB888 or RGB565. So we need to skip RGB555 mode. Signed-off-by: Zheng Bao Signed-off-by: Kevin O'Connor --- src/bootsplash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bootsplash.c b/src/bootsplash.c index c572685..165c98d 100644 --- a/src/bootsplash.c +++ b/src/bootsplash.c @@ -81,7 +81,8 @@ find_videomode(struct vbe_info *vesa_info, struct vbe_mode_info *mode_info continue; u8 depth = mode_info->bits_per_pixel; if (bpp_req == 0) { - if (depth != 16 && depth != 24 && depth != 32) + if ((depth != 16 && depth != 24 && depth != 32) + || mode_info->green_size == 5) continue; } else { if (depth != bpp_req) -- 2.39.5