mirror of
https://github.com/limine-bootloader/limine
synced 2025-01-07 13:22:18 +03:00
gop: Preset mode is the one the firmware gives us
This commit is contained in:
parent
380f358e07
commit
e402508b61
@ -124,6 +124,10 @@ static bool try_mode(struct fb_info *ret, size_t mode, int width, int height, in
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define INVALID_PRESET_MODE 0xfffffffff
|
||||||
|
|
||||||
|
static size_t preset_mode = INVALID_PRESET_MODE;
|
||||||
|
|
||||||
bool init_gop(struct fb_info *ret,
|
bool init_gop(struct fb_info *ret,
|
||||||
uint16_t target_width, uint16_t target_height, uint16_t target_bpp) {
|
uint16_t target_width, uint16_t target_height, uint16_t target_bpp) {
|
||||||
EFI_STATUS status;
|
EFI_STATUS status;
|
||||||
@ -148,7 +152,8 @@ bool init_gop(struct fb_info *ret,
|
|||||||
panic("gop: Initialisation failed");
|
panic("gop: Initialisation failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t preset_mode = gop->Mode->Mode;
|
if (preset_mode == INVALID_PRESET_MODE)
|
||||||
|
preset_mode = gop->Mode->Mode;
|
||||||
|
|
||||||
struct resolution fallback_resolutions[] = {
|
struct resolution fallback_resolutions[] = {
|
||||||
{ 0, 0, 0 }, // Overridden by preset mode
|
{ 0, 0, 0 }, // Overridden by preset mode
|
||||||
|
Loading…
Reference in New Issue
Block a user