aboutsummaryrefslogtreecommitdiffstats
path: root/src/bootsplash.c
diff options
context:
space:
mode:
authorZheng Bao <fishbaoz@hotmail.com>2016-05-20 15:26:32 +0000
committerKevin O'Connor <kevin@koconnor.net>2016-06-02 08:49:08 -0400
commitd97c200c6e2bf69f32857937e1f278134b392e2a (patch)
treea2c08b228acd09189998b74ee97b0b5cf374e90e /src/bootsplash.c
parent04259c5817edc6d23f0aed76fd20ab220efcddc6 (diff)
downloadseabios-d97c200c6e2bf69f32857937e1f278134b392e2a.tar.gz
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 <fishbaozi@gmail.com> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r--src/bootsplash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c
index c572685d..165c98d0 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)