From: Zheng Bao Date: Fri, 20 May 2016 15:26:32 +0000 (+0000) Subject: splash: Skip the RGB555 mode X-Git-Tag: rel-1.10.0~48 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d97c200c6e2bf69f32857937e1f278134b392e2a;p=seabios.git 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 --- 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)