[SeaBIOS] [PATCH] splash: Skip the RGB555 mode

Zheng Bao fishbaoz at hotmail.com
Fri May 20 15:03:24 CEST 2016


Current JPEG decoding uses the RGB666 or RGB565. So we need to skip
RGB555 mode.

Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 src/bootsplash.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bootsplash.c b/src/bootsplash.c
index c572685..d6990fc 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -81,7 +81,7 @@ 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)

 		 	   		  


More information about the SeaBIOS mailing list