From 4730c7ed2b5f070454e2c8840cf96e150eb4df92 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sat, 27 Nov 2021 00:15:33 +0100 Subject: [PATCH] vbe&gop: Add 24 and 16 bpp modes to list of fallbacks (see #137) --- stage23/drivers/gop.c | 8 +++++++- stage23/drivers/vbe.c | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/stage23/drivers/gop.c b/stage23/drivers/gop.c index dfda55c1..d6448cb0 100644 --- a/stage23/drivers/gop.c +++ b/stage23/drivers/gop.c @@ -159,7 +159,13 @@ bool init_gop(struct fb_info *ret, { 0, 0, 0 }, // Overridden by preset mode { 1024, 768, 32 }, { 800, 600, 32 }, - { 640, 480, 32 } + { 640, 480, 32 }, + { 1024, 768, 24 }, + { 800, 600, 24 }, + { 640, 480, 24 }, + { 1024, 768, 16 }, + { 800, 600, 16 }, + { 640, 480, 16 } }; UINTN modes_count = gop->Mode->MaxMode; diff --git a/stage23/drivers/vbe.c b/stage23/drivers/vbe.c index 77856e46..ae74274a 100644 --- a/stage23/drivers/vbe.c +++ b/stage23/drivers/vbe.c @@ -139,7 +139,13 @@ bool init_vbe(struct fb_info *ret, struct resolution fallback_resolutions[] = { { 1024, 768, 32 }, { 800, 600, 32 }, - { 640, 480, 32 } + { 640, 480, 32 }, + { 1024, 768, 24 }, + { 800, 600, 24 }, + { 640, 480, 24 }, + { 1024, 768, 16 }, + { 800, 600, 16 }, + { 640, 480, 16 } }; if (!target_width || !target_height || !target_bpp) {