]> xenbits.xensource.com Git - seabios.git/commitdiff
splash: Skip the RGB555 mode
authorZheng Bao <fishbaoz@hotmail.com>
Fri, 20 May 2016 15:26:32 +0000 (15:26 +0000)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 2 Jun 2016 12:49:08 +0000 (08:49 -0400)
Current JPEG decoding uses the RGB888 or RGB565. So we need to skip
RGB555 mode.

Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/bootsplash.c

index c572685deaf110ee2d8c13760ef0c596cf6b2b53..165c98d0629ed04fd8089c210d2599a1b47c4d61 100644 (file)
@@ -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)