vbe&gop: Add 24 and 16 bpp modes to list of fallbacks (see #137)

This commit is contained in:
mintsuki 2021-11-27 00:15:33 +01:00
parent 26241bac2e
commit 4730c7ed2b
2 changed files with 14 additions and 2 deletions

View File

@ -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;

View File

@ -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) {