[boot] Stop picking largest video mode

For now, using VNC, I want to keep the framebuffer mode small, so I'm
commenting out the bootloader's loop to pick the biggest video mode.
I'll revisit this as a bootconfig option later.
This commit is contained in:
Justin C. Miller
2023-02-20 11:21:35 -08:00
parent 6b43ddc8d7
commit 15e2f8abf3

View File

@@ -45,6 +45,7 @@ pick_mode(uefi::boot_services *bs)
uint32_t res = info->horizontal_resolution * info->vertical_resolution; uint32_t res = info->horizontal_resolution * info->vertical_resolution;
int pixmode = static_cast<int>(info->pixel_format); int pixmode = static_cast<int>(info->pixel_format);
/*
const uint32_t modes = gop->mode->max_mode; const uint32_t modes = gop->mode->max_mode;
for (uint32_t i = 0; i < modes; ++i) { for (uint32_t i = 0; i < modes; ++i) {
size_t size = 0; size_t size = 0;
@@ -63,6 +64,7 @@ pick_mode(uefi::boot_services *bs)
pixmode = new_pixmode; pixmode = new_pixmode;
} }
} }
*/
screen *s = new screen; screen *s = new screen;
s->mode = { s->mode = {